:root {
  --black: #050505;
  --ink: #0a0a0a;
  --white: #f2f1ec;
  --muted: #aaa9a3;
  --red: #d63a34;
  --line: rgba(242, 241, 236, 0.22);
  --mono: Consolas, "Courier New", monospace;
  --condensed: Haettenschweiler, Impact, "Arial Narrow", sans-serif;
  --display: "Arial Black", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: var(--mono);
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

::selection {
  color: var(--white);
  background: var(--red);
}

.page-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
}

.cursor {
  position: fixed;
  z-index: 120;
  width: 28px;
  height: 28px;
  border: 1px solid var(--red);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 160ms ease, height 160ms ease, background 160ms ease;
  mix-blend-mode: difference;
}

.cursor.is-active {
  width: 54px;
  height: 54px;
  background: var(--red);
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 0 2.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  line-height: 0;
}

.wordmark img {
  width: auto;
  height: 2.25rem;
}

.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.site-header nav a {
  position: relative;
  padding: 0.5rem 0;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

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

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  justify-self: end;
  height: 1.4rem;
  line-height: 0;
}

.availability img {
  width: auto;
  max-width: none;
  height: 100%;
}

.availability-i {
  width: 0.22rem;
  height: 100%;
  background: var(--red);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.58) 50%, rgba(0, 0, 0, 0.78) 100%);
  content: "";
}

.hero-texture {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.18);
  opacity: 0.52;
}

.hero-rule {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 58.5%;
  width: 46px;
  border-right: 1px solid rgba(214, 58, 52, 0.35);
  border-left: 1px solid rgba(214, 58, 52, 0.35);
  transform: translateX(-50%);
}

.hero-rule span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 100%;
  background: var(--red);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  animation: rule-in 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name {
  position: absolute;
  z-index: 2;
  top: 48%;
  left: 58.5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  transform: translate(-50%, -50%);
  transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  pointer-events: none;
}

.hero-face {
  position: absolute;
  z-index: 1;
  inset: 0 50% 0 0;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

.hero-face img {
  position: absolute;
  top: 68%;
  left: 48%;
  width: 142%;
  max-width: none;
  height: 118%;
  object-fit: cover;
  object-position: 53% 32%;
  filter: grayscale(0.14) saturate(0.82) brightness(0.68) contrast(1.08);
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%) scale(1.025);
  transform-origin: center;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.hero-name span {
  display: flex;
  align-items: center;
  animation: name-in 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-name img {
  width: auto;
  max-width: none;
  height: clamp(12rem, 16vw, 20rem);
  pointer-events: none;
  user-select: none;
}

.hero-name-left {
  justify-content: flex-end;
  padding-right: 5vw;
}

.hero-name-right {
  justify-content: flex-start;
  padding-left: 5vw;
  animation-delay: 0.08s !important;
}

.hero-meta {
  position: absolute;
  z-index: 4;
  right: 2.5vw;
  bottom: 3.5rem;
  left: 2.5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 0.68rem;
  line-height: 1.6;
  text-transform: uppercase;
}

.hero-meta p:last-child {
  justify-self: end;
  text-align: right;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  bottom: 1.25rem;
  left: 50%;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue span:last-child {
  color: var(--red);
  font-size: 1.25rem;
}

.work {
  padding: 8rem 2.5vw 5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  padding: 0 0 4rem;
}

.section-index {
  margin: 0;
  color: var(--red);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.section-heading .section-index {
  font-size: 1.05rem;
  font-weight: 700;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  font-weight: 500;
  line-height: 0.92;
  text-transform: uppercase;
}

.section-note {
  max-width: 19rem;
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.project-rail-wrap {
  position: relative;
}

.project-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black);
}

.project {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090909;
  cursor: pointer;
}

.project:first-child {
  margin-left: 0;
}

.project-media {
  position: relative;
  inset: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
  transform: scale(1.015);
  transition: filter 500ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-yan .project-media img {
  object-fit: contain;
  background: #000;
  transform: none;
}

.project-yan:hover .project-media img,
.project-yan:focus-visible .project-media img {
  transform: scale(1.025);
}

.project-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  transition: background 350ms ease;
}

.project::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 0;
  background: var(--red);
  content: "";
  transition: height 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project:hover::after,
.project:focus-visible::after {
  height: 100%;
}

.project:hover .project-media img,
.project:focus-visible .project-media img {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.04);
}

.project:hover .project-tint,
.project:focus-visible .project-tint {
  background: rgba(0, 0, 0, 0.12);
}

.project-copy {
  position: relative;
  z-index: 2;
  inset: auto;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  min-height: 13rem;
  padding: 1.25rem;
  background: rgba(5, 5, 5, 0.96);
}

.project-number,
.project-type {
  color: var(--red);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.project-type {
  margin: 0 0 0.65rem;
}

.project-copy h3 {
  margin: 0;
  font-family: var(--condensed);
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 3.1vw, 3.4rem);
  font-weight: 600;
  line-height: 0.82;
  text-transform: uppercase;
}

.project-copy p:last-child {
  display: -webkit-box;
  margin: 0.75rem 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-open {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.project-open:hover,
.project-open:focus-visible {
  color: var(--black);
  background: var(--red);
  transform: rotate(45deg);
}

.project-placeholder {
  cursor: default;
}

.project-placeholder .project-copy h3 {
  overflow-wrap: normal;
  font-size: clamp(1.65rem, 2.3vw, 2.7rem);
}

.project-placeholder .project-media {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #171717, #0b0b0b);
}

.project-placeholder-mark {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(214, 58, 52, 0.45);
  color: rgba(242, 241, 236, 0.28);
  transform: rotate(45deg);
}

.project-placeholder-mark > * {
  transform: rotate(-45deg);
}

.project-placeholder-mark span {
  font-family: var(--condensed);
  font-size: clamp(3rem, 6vw, 6rem);
}

.project-placeholder-mark small,
.project-status {
  color: var(--muted);
  font-size: 0.52rem;
  text-transform: uppercase;
}

.project-placeholder::after {
  display: none;
}

.about {
  display: flex;
  align-items: center;
  height: 100svh;
  min-height: 680px;
  padding: calc(72px + 2.5vh) 2.5vw 2.5vh;
  border-bottom: 1px solid var(--line);
  background: var(--black);
  scroll-margin-top: 0;
}

.about-window {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151515;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, 0.48);
}

.about-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(242, 241, 236, 0.1);
  color: rgba(242, 241, 236, 0.58);
  background: #2b2929;
  font-size: 0.65rem;
  text-transform: uppercase;
}

.window-controls {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.window-controls i {
  display: block;
  width: 0.85rem;
  height: 1px;
  background: currentColor;
}

.window-controls i:nth-child(2) {
  height: 0.85rem;
  border: 1px solid currentColor;
  background: transparent;
}

.window-controls i:nth-child(3) {
  height: 0.85rem;
  background: linear-gradient(45deg, transparent 46%, currentColor 47%, currentColor 53%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 47%, currentColor 53%, transparent 54%);
}

.about-window-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  height: calc(100% - 58px);
  min-height: 0;
}

.about-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(3rem, 5vw, 6rem);
}

.about-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-status > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.about-status .section-index {
  font-size: 1.05rem;
  font-weight: 700;
}

.about .about-role {
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  color: var(--white);
  font-family: var(--condensed);
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: none;
}

.about-role span {
  display: block;
  white-space: nowrap;
}

.about-role b {
  color: var(--red);
  font-weight: inherit;
}

.portrait-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 60%;
  transition: filter 200ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.portrait-frame img {
  position: absolute;
  inset: 0;
  left: -14%;
  width: 135%;
  max-width: none;
  height: 114%;
  object-fit: cover;
  object-position: 50% center;
  pointer-events: none;
  transition: opacity 45ms ease-out;
  user-select: none;
}

.portrait-frame:hover,
.portrait-frame:focus-visible {
  filter: brightness(1.08);
}

.portrait-poked,
.portrait-overloaded {
  opacity: 0;
}

.portrait-frame.is-poked {
  animation: portrait-poke 340ms linear;
}

.portrait-frame.is-poked .portrait-poked {
  opacity: 1;
}

.portrait-frame.is-overloaded {
  cursor: default;
  filter: none;
}

.portrait-frame.is-overloaded .portrait-normal,
.portrait-frame.is-overloaded .portrait-poked {
  opacity: 0;
}

.portrait-frame.is-overloaded .portrait-overloaded {
  opacity: 1;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3vw;
  margin: clamp(1.5rem, 3vh, 2.25rem) 0 2rem;
  padding: 0;
  list-style: none;
}

.about-points li {
  min-width: 0;
  padding: 1rem 0 1.2rem;
  border-top: 1px solid var(--line);
}

.about-points li > span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--red);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.about-points p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: auto;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}

.capabilities span {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.capabilities span:nth-child(odd) {
  color: var(--red);
}

.capabilities p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1.5;
}

.about-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #090909;
  isolation: isolate;
}

.about-visual::before,
.about-visual::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
}

.about-visual::before {
  background: repeating-linear-gradient(to bottom, rgba(242, 241, 236, 0.035) 0, rgba(242, 241, 236, 0.035) 1px, rgba(0, 0, 0, 0.09) 1px, rgba(0, 0, 0, 0.09) 4px);
  mix-blend-mode: overlay;
}

.about-visual::after {
  inset: -38% 0;
  background: linear-gradient(to bottom, transparent 16%, rgba(242, 241, 236, 0.04) 30%, rgba(242, 241, 236, 0.18) 46%, rgba(242, 241, 236, 0.24) 52%, rgba(0, 0, 0, 0.2) 64%, transparent 84%);
  mix-blend-mode: overlay;
  animation: screen-wave 6s linear infinite;
}

.portrait-readout {
  position: absolute;
  z-index: 3;
  top: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  display: flex;
  justify-content: space-between;
  color: rgba(242, 241, 236, 0.5);
  font-size: 0.58rem;
  text-transform: uppercase;
  pointer-events: none;
}

.contact {
  min-height: 74vh;
  padding: 9rem 2.5vw 2rem;
}

.contact > .section-index {
  font-size: 1.05rem;
  font-weight: 700;
}

.contact h2 {
  max-width: 1500px;
  margin: 7vh 0 3.5rem;
  font-size: clamp(3rem, 5.7vw, 6.8rem);
  line-height: 0.9;
}

.contact h2 span {
  display: block;
}

.contact h2 span:not(:last-child) {
  font-size: clamp(2.1rem, 3.65vw, 4.4rem);
  line-height: 1;
  white-space: nowrap;
}

.contact h2 span + span {
  margin-top: 0.18em;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-links > * {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  align-items: center;
  min-width: 0;
  padding: 1.25rem 1.3rem;
  border-right: 1px solid var(--line);
}

.contact-links > *:first-child {
  padding-left: 0;
}

.contact-links > *:last-child {
  border-right: 0;
}

.contact-links small {
  grid-column: 1 / -1;
  color: var(--red);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.contact-links span {
  overflow-wrap: anywhere;
  font-size: clamp(0.78rem, 1.25vw, 1.15rem);
}

.contact-links b {
  color: var(--red);
  font-size: 1rem;
  font-weight: 400;
}

.contact-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10vh;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.project-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  border: 0;
  color: var(--white);
  background: var(--black);
}

.project-dialog::backdrop {
  background: var(--black);
}

.project-dialog[open] {
  animation: dialog-in 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-shell {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  padding: 0 2.5vw 5rem;
  overflow-x: hidden;
}

.dialog-header {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(16px);
}

.dialog-count,
.dialog-label {
  font-size: 0.65rem;
  text-transform: uppercase;
}

.dialog-count {
  color: var(--red);
}

.dialog-close {
  justify-self: end;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--black);
  background: var(--red);
}

.dialog-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8vw;
  min-height: 58vh;
  align-items: end;
  padding: 9rem 4vw 5rem;
}

.dialog-title-block,
.dialog-summary {
  min-width: 0;
}

.dialog-title-block p {
  margin: 0 0 1.3rem;
  color: var(--red);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.dialog-title-block h2 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(4.5rem, 10vw, 10rem);
  font-weight: 600;
  line-height: 0.78;
  white-space: nowrap;
  text-transform: uppercase;
}

.dialog-summary > p {
  margin: 0 0 3rem;
  font-family: var(--condensed);
  font-size: clamp(1.5rem, 2.6vw, 2.8rem);
  line-height: 1.25;
}

.dialog-links {
  margin: -1.5rem 0 2.5rem;
}

.dialog-links a {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--red);
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.dialog-links a span {
  color: var(--red);
  font-size: 1rem;
}

.dialog-summary dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.dialog-summary dl div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.dialog-summary dt {
  color: var(--red);
}

.dialog-summary dd {
  margin: 0;
}

.dialog-gallery-wrap {
  position: relative;
  padding-bottom: 5rem;
}

.gallery-progress {
  height: 2px;
  margin-bottom: 1.5rem;
  background: var(--line);
}

.gallery-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 180ms ease;
}

.dialog-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.dialog-gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  display: grid;
  flex: 0 0 100%;
  min-height: min(76vh, 900px);
  place-items: center;
  padding: 2vw;
  scroll-snap-align: start;
  background: #101010;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  max-height: min(72vh, 840px);
  object-fit: contain;
}

.gallery-item video {
  background: #000;
}

.gallery-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin-top: 1.5rem;
}

.gallery-controls span {
  justify-self: center;
  color: var(--muted);
  font-size: 0.65rem;
}

.gallery-controls button {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  color: var(--black);
  background: var(--red);
}

.dialog-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.dialog-next span {
  color: var(--red);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.dialog-next button {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--condensed);
  font-size: clamp(3rem, 8vw, 8rem);
  text-transform: uppercase;
  cursor: pointer;
}

.dialog-next button:hover,
.dialog-next button:focus-visible {
  color: var(--red);
}

@keyframes name-in {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rule-in {
  to { transform: translateX(-50%) scaleY(1); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(4vh); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes character-poke {
  0% { transform: translate(-50%, -50%) scale(1.025) rotate(-0.35deg); }
  18% { transform: translate(-50%, -48.5%) scale(0.955, 0.92) rotate(1deg); }
  42% { transform: translate(-50%, -51%) scale(1.035, 1.055) rotate(-0.7deg); }
  68% { transform: translate(-50%, -49.7%) scale(0.99, 0.985); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes portrait-poke {
  0% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(-5px, 2px) scale(0.992, 0.985); }
  24% { transform: translate(6px, -2px) scale(1.008, 0.995); }
  36% { transform: translate(-7px, 1px) scale(0.996, 1.006); }
  48% { transform: translate(6px, -1px) scale(1.005, 0.994); }
  60% { transform: translate(-4px, 2px) scale(0.998, 1.004); }
  72% { transform: translate(3px, -1px) scale(1.003, 0.998); }
  84% { transform: translate(-2px, 0) scale(0.999, 1.001); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes screen-wave {
  from { transform: translateY(-24%); }
  to { transform: translateY(24%); }
}

@media (max-width: 900px) {
  .project-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .cursor { display: none; }
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; }
  .wordmark img { height: 1.875rem; }
  .site-header nav { gap: 1rem; font-size: 0.78rem; }
  .availability { display: none; }
  .hero { min-height: 88vh; }
  .hero-name { top: 44%; left: 58.5%; width: 100%; }
  .hero-name img { height: 20vw; }
  .hero-name-left { justify-content: flex-start; padding-right: 0; padding-left: 2vw; }
  .hero-name-right { padding-left: 4vw; }
  .hero-rule { left: 58.5%; width: 24px; }
  .hero-rule span { width: 7px; }
  .hero-face { inset: 0 38% 0 0; opacity: 1; }
  .hero-face img { top: 65%; left: 50%; width: 190%; height: 106%; object-position: 52% center; }
  .hero-meta { bottom: 4rem; grid-template-columns: 1fr 1fr; font-size: 0.55rem; }
  .section-heading { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 3rem; }
  .section-heading h2 { font-size: 3.6rem; }
  .section-note { margin: 0; }
  .work { padding: 6rem 3vw 4rem; }
  .project-rail { grid-template-columns: 1fr; overflow: hidden; }
  .project { min-height: 0; margin-left: 0 !important; }
  .project-copy { grid-template-columns: 2rem 1fr auto; gap: 0.75rem; padding: 1.35rem; }
  .project-copy h3 { font-size: 3.2rem; }
  .project-copy p:last-child { display: -webkit-box; }
  .project-open { width: 2.8rem; height: 2.8rem; }
  .about { height: auto; min-height: 0; padding: 6rem 3vw; }
  .about-window { height: auto; }
  .about-window-bar { min-height: 50px; padding: 0 1rem; }
  .about-window-body { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .about-copy { padding: 2.2rem 1.4rem 3rem; }
  .about-status { align-items: flex-start; }
  .about-status > p:last-child { max-width: 9rem; text-align: right; }
  .about-points { grid-template-columns: 1fr; margin-top: 2.5rem; }
  .capabilities { margin-top: 3rem; padding-top: 0; }
  .about-visual { min-height: 72vh; border-top: 1px solid var(--line); border-left: 0; }
  .portrait-frame img { left: -20%; width: 150%; height: 114%; object-position: 50% center; }
  .contact { min-height: 70vh; padding-top: 7rem; }
  .contact h2 { margin-top: 4rem; font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .contact h2 span:not(:last-child) { font-size: clamp(1.7rem, 7.5vw, 2.7rem); white-space: normal; }
  .contact-links { grid-template-columns: 1fr 1fr; }
  .contact-links > * { border-bottom: 1px solid var(--line); }
  .contact-links > *:nth-child(2) { border-right: 0; }
  .contact-links > *:nth-last-child(-n + 2) { border-bottom: 0; }
  .contact-links > *:first-child { padding-left: 1.3rem; }
  .dialog-shell { padding: 0 4vw 3rem; }
  .dialog-header { min-height: 62px; }
  .dialog-label { display: none; }
  .dialog-intro { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding: 7rem 0 4rem; }
  .dialog-title-block h2 { font-size: clamp(3.5rem, 15vw, 6.5rem); }
  .dialog-summary > p { font-size: 1.65rem; }
  .gallery-item { min-height: 56vh; padding: 1rem; }
  .gallery-item img, .gallery-item video { max-height: 54vh; }
}

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