:root {
  color-scheme: dark;
  --bg: #000;
  --panel: #030303;
  --line: rgba(245, 245, 238, 0.14);
  --line-strong: rgba(245, 245, 238, 0.46);
  --text: #f4f4ee;
  --muted: rgba(244, 244, 238, 0.58);
  --dim: rgba(244, 244, 238, 0.34);
  --cold: #9bd8f2;
  --bone: #d8d6cb;
  --oxide: #9c7a67;
  --danger: #ff6078;
  --radius: 4px;
  --measure: 1px solid rgba(244, 244, 238, 0.18);
  --mx: 50vw;
  --my: 34vh;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --logo-x: 50%;
  --logo-y: 50%;
  --logo-tilt-x: 0deg;
  --logo-tilt-y: 0deg;
  --liquid-tilt-x: 0deg;
  --liquid-tilt-y: 0deg;
  --liquid-shift-y: 0px;
  --identity-tilt-x: 0deg;
  --identity-tilt-y: 0deg;
  --identity-shift-x: 0px;
  --identity-shift-y: 0px;
  --identity-scan-y: 34%;
  --font-zh: "DengXian", "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-ui: "Bahnschrift", "Arial Narrow", "DIN Alternate", "DengXian", sans-serif;
  --font-title: "Arial Narrow", "Bahnschrift SemiCondensed", "DengXian Light", "DengXian", sans-serif;
  font-family: var(--font-zh);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: #000;
  overflow-x: hidden;
  font-weight: 300;
  font-feature-settings: "kern" 1, "liga" 1;
}

body::before,
body::after,
#particleCanvas,
.cursor-light,
.cyber-atmosphere,
.light-field,
.scan-plane {
  display: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 28px;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
}

.site-header::after {
  position: absolute;
  right: 5vw;
  bottom: -1px;
  width: min(28vw, 320px);
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.82rem;
  min-width: 0;
}

.brand-mark {
  width: 118px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  filter: contrast(1.12);
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  max-width: 18rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  font-stretch: condensed;
}

.brand small {
  max-width: 16rem;
  margin-top: 0.12rem;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 300;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: rgba(244, 244, 238, 0.76);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-stretch: condensed;
}

.site-nav a {
  position: relative;
  display: grid;
  gap: 0.14rem;
  padding: 0.6rem 0;
}

.site-nav small {
  color: var(--dim);
  font-size: 0.56rem;
  text-transform: uppercase;
}

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

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

.owner-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(244, 244, 238, 0.12);
  border-radius: 50%;
  color: transparent;
  background: transparent;
  opacity: 0.36;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.owner-button::before {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text);
  content: "";
}

.owner-button:hover,
.owner-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  opacity: 1;
}

.owner-button[data-state="active"]::before {
  background: var(--cold);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(420px, 1.26fr);
  align-items: center;
  gap: 2.8rem;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: 4.7rem 5vw 3.4rem;
  border-bottom: var(--measure);
}

.hero-section::before {
  position: absolute;
  top: 3.2rem;
  right: 5vw;
  left: 5vw;
  height: 1px;
  background: var(--line-strong);
  content: "";
  opacity: 0.62;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 620px;
}

.hero-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-meta-line span {
  color: var(--dim);
  font-family: var(--font-ui);
  font-size: 0.62rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0;
  font-stretch: condensed;
  text-transform: uppercase;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 1.45rem;
  font-family: var(--font-title);
  font-size: clamp(3.1rem, 5.4vw, 6.2rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  font-stretch: condensed;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-title);
  font-size: 2.7rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0;
  font-stretch: condensed;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.28;
}

.hero-lede {
  max-width: 560px;
  color: rgba(244, 244, 238, 0.66);
  font-size: 0.98rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 2.4rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 42px;
  overflow: hidden;
  padding: 0 0.98rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-stretch: condensed;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button small {
  color: var(--muted);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: transparent;
}

.button.primary {
  border-color: rgba(244, 244, 238, 0.82);
  color: var(--text);
  background: transparent;
  font-weight: 400;
}

.button.primary small {
  color: var(--muted);
}

.button.primary::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.48rem;
  left: 0.7rem;
  height: 1px;
  transform: scaleX(0.32);
  transform-origin: left;
  background: var(--text);
  content: "";
  transition: transform 180ms ease;
}

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

.button.danger {
  border-color: rgba(255, 96, 120, 0.48);
  color: #ffe0e6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 560px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats div {
  padding: 0.92rem 1rem 0.95rem;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 500;
}

.hero-stats dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.taxonomy-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 620px;
  margin-top: 1.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(244, 244, 238, 0.22);
  color: rgba(244, 244, 238, 0.42);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-stretch: condensed;
  line-height: 1.25;
}

.taxonomy-strip span {
  position: relative;
  padding-top: 0.58rem;
}

.taxonomy-strip span::before {
  position: absolute;
  top: -0.66rem;
  left: 0;
  width: 1px;
  height: 0.48rem;
  background: rgba(244, 244, 238, 0.34);
  content: "";
}

.logo-signal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-items: center;
  width: min(78vw, 1080px);
  min-height: clamp(600px, calc(100svh - 110px), 900px);
  margin-left: clamp(-9rem, -9vw, -4rem);
  padding: 1.6rem 0;
  isolation: isolate;
  cursor: crosshair;
  outline: none;
  perspective: 900px;
}

.logo-signal::before,
.logo-signal::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.logo-signal::before {
  top: 15%;
  right: 0;
  left: 1%;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(244, 244, 238, 0.52), rgba(244, 244, 238, 0.12) 66%, transparent),
    repeating-linear-gradient(90deg, rgba(244, 244, 238, 0.42) 0 1px, transparent 1px 36px);
}

.logo-signal::after {
  top: 9%;
  right: 3%;
  bottom: 8%;
  width: 1px;
  background: rgba(244, 244, 238, 0.22);
}

.liquid-metal-core {
  position: relative;
  z-index: 1;
  width: clamp(560px, 64vw, 980px);
  aspect-ratio: 1;
  overflow: hidden;
  margin-left: clamp(-4rem, -4vw, -1.5rem);
  transform: rotateX(var(--liquid-tilt-x)) rotateY(var(--liquid-tilt-y));
  outline: 1px solid transparent;
  transition: transform 180ms ease, filter 220ms ease;
}

.liquid-metal-core::before,
.liquid-metal-core::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.liquid-metal-core::before {
  inset: 5% 7% 7% 5%;
  border-top: 1px solid rgba(244, 244, 238, 0.16);
  border-right: 1px solid rgba(244, 244, 238, 0.12);
  opacity: 0.72;
}

.liquid-metal-core::after {
  top: 15%;
  right: 9%;
  left: 10%;
  height: 1px;
  transform: translateY(var(--liquid-shift-y));
  background: rgba(244, 244, 238, 0.2);
}

.liquid-metal-canvas,
.liquid-metal-source {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  -webkit-mask-image:
    radial-gradient(ellipse at 54% 48%, #000 0 48%, rgba(0, 0, 0, 0.72) 66%, transparent 86%);
  mask-image:
    radial-gradient(ellipse at 54% 48%, #000 0 48%, rgba(0, 0, 0, 0.72) 66%, transparent 86%);
}

.liquid-metal-canvas {
  z-index: 2;
  opacity: 0;
  transition: opacity 240ms ease;
}

.liquid-metal-core.is-ready .liquid-metal-canvas {
  opacity: 1;
}

.liquid-metal-source {
  z-index: 1;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) contrast(1.34) brightness(0.58) drop-shadow(0 0 18px rgba(244, 244, 238, 0.06));
  mix-blend-mode: screen;
  transition: opacity 240ms ease, filter 240ms ease;
}

.liquid-metal-core.is-ready .liquid-metal-source {
  opacity: 0;
}

.logo-signal:hover .liquid-metal-core,
.logo-signal:focus-visible .liquid-metal-core,
.logo-signal.is-active .liquid-metal-core {
  filter: drop-shadow(0 0 24px rgba(244, 244, 238, 0.12));
}

.liquid-metal-readout {
  position: absolute;
  right: 6%;
  bottom: 13%;
  z-index: 3;
  display: grid;
  gap: 0.26rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(244, 244, 238, 0.28);
  color: rgba(244, 244, 238, 0.44);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-stretch: condensed;
  pointer-events: none;
}

.logo-signal-shell {
  position: absolute;
  bottom: 7%;
  left: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  width: min(620px, 58%);
  transform: rotateX(var(--logo-tilt-x)) rotateY(var(--logo-tilt-y));
  transition: transform 180ms ease, filter 180ms ease;
  transform-style: preserve-3d;
}

.logo-signal-shell::before,
.logo-signal-shell::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.logo-signal-shell::before {
  inset: -34% -10%;
  border-top: 1px solid rgba(244, 244, 238, 0.22);
  border-bottom: 1px solid rgba(244, 244, 238, 0.18);
  background: transparent;
}

.logo-signal-shell::after {
  top: -18%;
  bottom: -18%;
  left: 0;
  width: 14%;
  transform: translateX(-130%);
  border-right: 1px solid rgba(244, 244, 238, 0.34);
  border-left: 1px solid rgba(244, 244, 238, 0.18);
  background: transparent;
  opacity: 0;
}

.logo-signal:hover .logo-signal-shell::after,
.logo-signal:focus-visible .logo-signal-shell::after,
.logo-signal.is-active .logo-signal-shell::after {
  animation: logo-scan 980ms ease;
}

.logo-signal img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: grayscale(1) contrast(1.34) brightness(1.12) drop-shadow(0 0 24px rgba(244, 244, 238, 0.22));
  transition: filter 180ms ease, opacity 180ms ease;
}

.logo-signal:hover img,
.logo-signal:focus-visible img {
  opacity: 1;
  filter: grayscale(1) contrast(1.48) brightness(1.18) drop-shadow(0 0 34px rgba(244, 244, 238, 0.28));
}

.logo-signal.is-active img {
  animation: logo-pulse 720ms ease;
}

.logo-signal-meta {
  position: absolute;
  right: 0;
  bottom: 8%;
  display: grid;
  gap: 0.32rem;
  padding-left: 0.72rem;
  border-left: 1px solid rgba(244, 244, 238, 0.24);
  color: rgba(244, 244, 238, 0.48);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-stretch: condensed;
  pointer-events: none;
}

.logo-ruler {
  position: absolute;
  top: 24%;
  left: 8%;
  display: grid;
  gap: 0.28rem;
  color: rgba(244, 244, 238, 0.4);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-stretch: condensed;
  pointer-events: none;
}

.logo-ruler::before {
  width: 42px;
  height: 1px;
  margin-bottom: 0.32rem;
  background: rgba(244, 244, 238, 0.42);
  content: "";
}

@keyframes logo-scan {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }

  24%,
  70% {
    opacity: 0.62;
  }

  100% {
    transform: translateX(560%);
    opacity: 0;
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    transform: translateZ(0) scale(1);
  }

  38% {
    transform: translateZ(20px) scale(1.018);
  }
}

.transition-section {
  --transition-video-shift: 0px;
  --transition-x: 0px;
  --transition-y: 0px;
  --transition-light-x: 50%;
  --transition-light-y: 50%;
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: 5.6rem 5vw;
  border-bottom: var(--measure);
  isolation: isolate;
}

.transition-section::before,
.transition-section::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.transition-section::before {
  z-index: 2;
  background:
    radial-gradient(circle at var(--transition-light-x) var(--transition-light-y), rgba(244, 244, 238, 0.11), transparent 24%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0.34) 76%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08) 52%, rgba(0, 0, 0, 0.68));
  opacity: 0.92;
}

.transition-section::after {
  z-index: 4;
  border-top: 1px solid rgba(244, 244, 238, 0.2);
  border-bottom: 1px solid rgba(244, 244, 238, 0.16);
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(244, 244, 238, 0.12) 8% 8.08%, transparent 8.08% 92%, rgba(244, 244, 238, 0.08) 92% 92.08%, transparent 92.08%);
  mix-blend-mode: screen;
  opacity: 0.22;
}

.transition-video {
  position: absolute;
  inset: -5%;
  z-index: 1;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08) brightness(0.62) blur(0.35px);
  transform: translate3d(0, var(--transition-video-shift), 0) scale(1.035);
  transition: transform 1200ms cubic-bezier(0.18, 0.72, 0.18, 1), filter 900ms ease;
}

.transition-copy {
  position: relative;
  z-index: 5;
  max-width: min(620px, 62vw);
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 244, 238, 0.3);
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 900ms ease 120ms, transform 1100ms cubic-bezier(0.18, 0.72, 0.18, 1) 120ms;
}

.transition-copy h2 {
  max-width: 560px;
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.96;
}

.transition-copy p:not(.eyebrow) {
  max-width: 440px;
  margin-top: 1.1rem;
  color: rgba(244, 244, 238, 0.58);
  line-height: 1.9;
}

.transition-ruler {
  position: absolute;
  right: 5vw;
  bottom: 4.4rem;
  z-index: 5;
  display: grid;
  gap: 0.3rem;
  padding-left: 0.72rem;
  transform: translateY(18px);
  border-left: 1px solid rgba(244, 244, 238, 0.24);
  color: rgba(244, 244, 238, 0.44);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-stretch: condensed;
  opacity: 0;
  transition: opacity 900ms ease 280ms, transform 1100ms cubic-bezier(0.18, 0.72, 0.18, 1) 280ms;
}

.transition-section.is-visible .transition-copy,
.transition-section.is-visible .transition-ruler {
  transform: translateY(0);
  opacity: 1;
}

.resume-section,
.works-section,
.contact-section {
  padding: 5.6rem 5vw;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.35rem;
}

.section-heading.wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.56fr) minmax(0, 0.92fr) minmax(250px, 0.58fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-block {
  padding: 2.2rem 2.4rem 2.2rem 0;
  border-right: 1px solid var(--line);
}

.profile-kicker {
  color: var(--oxide);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 400;
}

.profile-block h3 {
  font-family: var(--font-title);
  font-size: 2.3rem;
  font-weight: 300;
}

.profile-block p,
.timeline p,
.contact-section address {
  color: rgba(244, 244, 238, 0.62);
  line-height: 1.86;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
  margin-top: 1.45rem;
}

.profile-tags span {
  padding: 0.4rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(244, 244, 238, 0.7);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-stretch: condensed;
}

.timeline {
  display: grid;
}

.timeline article {
  position: relative;
  padding: 1.55rem 0 1.7rem 2.2rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 180ms ease, background 180ms ease;
}

.timeline article:last-child {
  border-bottom: 0;
}

.timeline article:hover {
  border-color: var(--line-strong);
  background: transparent;
}

.timeline time {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

.identity-figure {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 1.35rem 0 1.35rem 1.35rem;
  border-left: 1px solid var(--line);
  cursor: crosshair;
  outline: none;
  perspective: 900px;
  isolation: isolate;
}

.identity-figure::before,
.identity-figure::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.identity-figure::before {
  top: 1.35rem;
  right: 0;
  left: 1.35rem;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(244, 244, 238, 0.5), transparent 74%),
    repeating-linear-gradient(90deg, rgba(244, 244, 238, 0.24) 0 1px, transparent 1px 28px);
}

.identity-figure::after {
  top: var(--identity-scan-y);
  right: 0;
  left: 1.35rem;
  height: 1px;
  background: rgba(244, 244, 238, 0.24);
  opacity: 0.42;
}

.identity-figure-frame {
  position: relative;
  display: grid;
  place-items: end center;
  height: 100%;
  min-height: inherit;
  transform:
    translate3d(var(--identity-shift-x), var(--identity-shift-y), 0)
    rotateX(var(--identity-tilt-x))
    rotateY(var(--identity-tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease, filter 180ms ease;
}

.identity-figure-frame::before,
.identity-figure-frame::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.identity-figure-frame::before {
  inset: -3% -4% -2% -2%;
  z-index: 3;
  background:
    radial-gradient(ellipse at 52% 48%, transparent 0 46%, rgba(0, 0, 0, 0.26) 72%, #000 100%),
    linear-gradient(180deg, #000 0%, transparent 13%, transparent 84%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.44) 0%, transparent 17%, transparent 78%, #000 100%);
}

.identity-figure-frame::after {
  top: -8%;
  bottom: -8%;
  left: 18%;
  width: 12%;
  z-index: 4;
  transform: translateX(-170%);
  border-right: 1px solid rgba(244, 244, 238, 0.36);
  border-left: 1px solid rgba(244, 244, 238, 0.18);
  opacity: 0;
}

.identity-figure:hover .identity-figure-frame::after,
.identity-figure:focus-visible .identity-figure-frame::after,
.identity-figure.is-active .identity-figure-frame::after {
  animation: identity-scan 1080ms ease;
}

.identity-figure img {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  max-height: 560px;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0.94;
  mix-blend-mode: screen;
  filter: grayscale(1) contrast(1.25) brightness(0.82) drop-shadow(0 0 18px rgba(244, 244, 238, 0.1));
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 0 58%, rgba(0, 0, 0, 0.86) 76%, transparent 100%);
  mask-image: radial-gradient(ellipse at 50% 52%, #000 0 58%, rgba(0, 0, 0, 0.86) 76%, transparent 100%);
  transition: filter 180ms ease, opacity 180ms ease;
}

.identity-figure:hover img,
.identity-figure:focus-visible img {
  opacity: 1;
  filter: grayscale(1) contrast(1.4) brightness(0.96) drop-shadow(0 0 28px rgba(244, 244, 238, 0.16));
}

.identity-figure.is-active img {
  animation: identity-pulse 760ms ease;
}

.identity-figure-meta {
  position: absolute;
  right: 0.75rem;
  bottom: 1rem;
  z-index: 3;
  display: grid;
  gap: 0.28rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(244, 244, 238, 0.22);
  color: rgba(244, 244, 238, 0.44);
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-stretch: condensed;
  pointer-events: none;
}

@keyframes identity-scan {
  0% {
    transform: translateX(-170%);
    opacity: 0;
  }

  24%,
  68% {
    opacity: 0.55;
  }

  100% {
    transform: translateX(720%);
    opacity: 0;
  }
}

@keyframes identity-pulse {
  0%,
  100% {
    transform: translateZ(0) scale(1);
  }

  42% {
    transform: translateZ(18px) scale(1.018);
  }
}

.filter-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.filter-button,
.admin-tab {
  min-height: 36px;
  padding: 0 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: rgba(244, 244, 238, 0.68);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-stretch: condensed;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-button:hover,
.admin-tab:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.filter-button.active,
.admin-tab.active {
  border-color: rgba(244, 244, 238, 0.82);
  color: var(--text);
  background: transparent;
  font-weight: 400;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  background: #000;
  perspective: 1200px;
}

.work-module {
  grid-column: 1 / -1;
  --module-parallax: 0px;
  transform: translateY(calc(34px + var(--module-parallax)));
  opacity: 0;
  transition:
    opacity 780ms ease var(--reveal-delay, 0ms),
    transform 980ms cubic-bezier(0.18, 0.72, 0.18, 1) var(--reveal-delay, 0ms);
}

.work-module.is-visible {
  transform: translateY(var(--module-parallax));
  opacity: 1;
}

.work-module-header {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 0.72fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: end;
  padding: 1.15rem 0 1.05rem;
  border-bottom: 1px solid var(--line);
}

.work-module-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 3.05rem);
  line-height: 0.95;
}

.work-module-intro {
  max-width: 620px;
  margin: 0;
  color: rgba(244, 244, 238, 0.58);
  font-size: 0.86rem;
  line-height: 1.85;
}

.work-module-count {
  color: rgba(244, 244, 238, 0.5);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  white-space: nowrap;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: clamp(0.72rem, 1.2vw, 1rem);
  padding-top: clamp(0.9rem, 2vw, 1.5rem);
}

.module-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: rgba(244, 244, 238, 0.42);
  font-family: var(--font-ui);
  font-size: 0.72rem;
}

.work-card {
  position: relative;
  grid-column: span 3;
  min-height: 280px;
  aspect-ratio: 1;
  overflow: hidden;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  border: 1px solid var(--line);
  border-radius: 0;
  background: #000;
  cursor: pointer;
  opacity: 1;
  transition: transform 260ms ease, filter 260ms ease, opacity 720ms ease, translate 820ms cubic-bezier(0.18, 0.72, 0.18, 1);
  transform-style: preserve-3d;
}

.work-card.motion-reveal {
  opacity: 0;
  translate: 0 18px;
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

.work-card.motion-reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

.work-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid transparent;
  background:
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(255, 255, 255, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 38%, rgba(0, 0, 0, 0.64));
  mix-blend-mode: screen;
  opacity: 0.26;
  pointer-events: none;
  content: "";
  transition: border-color 180ms ease, opacity 180ms ease;
}

.work-card::after {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  left: 0.95rem;
  z-index: 1;
  height: 1px;
  background: rgba(244, 244, 238, 0.22);
  opacity: 0.42;
  pointer-events: none;
  content: "";
  transition: opacity 180ms ease;
}

.work-card.layout-hero,
.work-card.feature {
  grid-column: span 6;
  aspect-ratio: 1.12;
  min-height: 430px;
}

.work-card.layout-wide {
  grid-column: span 6;
  aspect-ratio: 1.58;
  min-height: 300px;
}

.work-card.layout-tall {
  grid-column: span 3;
  aspect-ratio: 0.68;
  min-height: 430px;
}

.work-card.layout-square {
  grid-column: span 3;
  aspect-ratio: 1;
  min-height: 300px;
}

.work-card.has-preview.media-landscape {
  grid-column: span 6;
  aspect-ratio: 1.52;
  min-height: 320px;
}

.work-card.has-preview.media-portrait {
  grid-column: span 3;
  aspect-ratio: 0.68;
  min-height: 460px;
}

.work-card.has-preview.media-square {
  grid-column: span 3;
  aspect-ratio: 1;
  min-height: 320px;
}

.work-card.feature.media-landscape,
.work-card.layout-hero.media-landscape {
  grid-column: span 7;
  aspect-ratio: 1.48;
}

.work-card.feature.media-portrait,
.work-card.layout-hero.media-portrait {
  grid-column: span 4;
  aspect-ratio: 0.72;
  min-height: 560px;
}

.work-card:hover,
.work-card:focus-within {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-4px);
  filter: contrast(1.03);
}

.work-card:hover::before,
.work-card:focus-within::before {
  border-color: rgba(244, 244, 238, 0.72);
  opacity: 0.46;
}

.work-card:hover::after,
.work-card:focus-within::after {
  opacity: 0.98;
}

.work-card img,
.work-card video,
.work-stack-preview,
.work-stack-preview > img,
.archive-slate {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.work-card img,
.work-card video {
  background: #000;
  filter: saturate(1.1) contrast(1.04) brightness(0.98);
  transform: scale(1.012);
  transition: transform 420ms ease, filter 420ms ease;
}

.work-card:hover img,
.work-card:hover video,
.work-card:hover .work-stack-preview > img,
.work-card:focus-within img,
.work-card:focus-within video,
.work-card:focus-within .work-stack-preview > img {
  filter: saturate(1.26) contrast(1.08) brightness(1.03);
  transform: scale(1.035);
}

.work-stack-preview {
  position: relative;
  overflow: hidden;
  background: #000;
}

.work-stack-preview > img {
  object-fit: cover;
  filter: saturate(1.12) contrast(1.05) brightness(0.98);
  transform: scale(1.012);
  transition: transform 420ms ease, filter 420ms ease;
}

.work-stack-rail {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 3;
  display: grid;
  gap: 0.38rem;
  width: min(24%, 96px);
}

.work-stack-rail img {
  aspect-ratio: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(244, 244, 238, 0.28);
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.work-stack-badge,
.work-count {
  display: inline-flex;
  width: max-content;
  border-top: 1px solid rgba(244, 244, 238, 0.28);
  color: rgba(244, 244, 238, 0.5);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-stretch: condensed;
}

.work-stack-badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  padding-top: 0.34rem;
}

.work-count {
  margin-top: 0.68rem;
  padding-top: 0.32rem;
}

.work-card.archive-preview {
  min-height: 240px;
  opacity: 0.78;
}

.archive-slate {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.42rem;
  overflow: hidden;
  padding: 1rem;
  background: #000;
  font-family: var(--font-ui);
}

.archive-slate[data-type="video"],
.archive-slate[data-type="model"] {
  background: #000;
}

.archive-slate::before,
.archive-slate::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.archive-slate::before {
  top: 1.1rem;
  right: 1.1rem;
  left: 1.1rem;
  height: 1px;
  background:
    linear-gradient(90deg, rgba(244, 244, 238, 0.52), transparent 72%),
    repeating-linear-gradient(90deg, rgba(244, 244, 238, 0.24) 0 1px, transparent 1px 22px);
}

.archive-slate::after {
  top: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 1px;
  background: var(--line);
}

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

.archive-slate .slate-index {
  color: rgba(244, 244, 238, 0.5);
  font-size: 0.68rem;
}

.archive-slate strong {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 300;
}

.archive-slate small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(244, 244, 238, 0.42);
  font-size: 0.68rem;
}

.archive-slate i {
  display: none;
}

.work-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  padding: 5rem 1rem 1rem;
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 34%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 68%);
  opacity: 0.9;
  transform: translateY(18%);
  transition: opacity 220ms ease, transform 220ms ease;
}

.work-card:hover .work-info,
.work-card:focus-within .work-info {
  opacity: 1;
  transform: translateY(0);
}

.work-info p {
  margin-bottom: 0.42rem;
  color: var(--oxide);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.work-info h3 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem;
  color: var(--muted);
  background: #000;
  text-align: center;
}

.contact-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.contact-section address {
  display: grid;
  gap: 0.65rem;
  font-style: normal;
  text-align: right;
}

.contact-section address a:hover {
  color: var(--text);
}

.login-modal[hidden],
.admin-panel[hidden],
.viewer[hidden] {
  display: none;
}

.login-modal,
.viewer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.modal-backdrop,
.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
}

.login-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.login-form,
.admin-form {
  display: grid;
  gap: 1rem;
}

.login-form label,
.admin-form label {
  display: grid;
  gap: 0.5rem;
  color: rgba(244, 244, 238, 0.72);
}

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

.admin-form .full,
.admin-form button,
.drop-zone {
  grid-column: 1 / -1;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #000;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

input,
select {
  min-height: 44px;
  padding: 0 0.85rem;
}

textarea {
  resize: vertical;
  padding: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--line-strong);
  background: #030303;
}

.admin-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  width: min(620px, 100vw);
  overflow-y: auto;
  padding: 1.1rem;
  border-left: 1px solid var(--line);
  background: #000;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-header h2 {
  font-size: 1.75rem;
}

.admin-actions,
.admin-tabs,
.work-admin-actions {
  display: flex;
  gap: 0.55rem;
}

.admin-tabs {
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-list {
  display: grid;
  gap: 0.8rem;
}

.admin-work {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.admin-work-preview {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.34rem;
  min-height: 56px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(244, 244, 238, 0.12);
}

.admin-asset-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(244, 244, 238, 0.16);
  border-radius: 0;
  color: rgba(244, 244, 238, 0.56);
  background: #000;
  font-family: var(--font-ui);
  font-size: 0.58rem;
}

.admin-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.admin-asset-more,
.admin-work-preview > span {
  display: grid;
  place-items: center;
  min-height: 56px;
  border: 1px solid rgba(244, 244, 238, 0.12);
  color: rgba(244, 244, 238, 0.42);
  font-family: var(--font-ui);
  font-size: 0.66rem;
}

.admin-work-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(244, 244, 238, 0.44);
  font-family: var(--font-ui);
  font-size: 0.64rem;
}

.admin-feature-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(244, 244, 238, 0.62);
  font-family: var(--font-ui);
  font-size: 0.7rem;
}

.admin-feature-toggle input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--text);
}

.admin-work-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 0.7rem;
}

.admin-work textarea,
.admin-work input,
.admin-work select {
  min-height: 40px;
}

.work-admin-actions {
  flex-wrap: wrap;
}

.work-admin-actions button:disabled {
  cursor: default;
  opacity: 0.32;
  transform: none;
}

.drop-zone {
  position: relative;
  min-height: 148px;
  place-items: center;
  padding: 1.25rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #000;
  text-align: center;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-zone.is-dragging {
  background: rgba(255, 255, 255, 0.04);
}

.drop-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 300;
}

.drop-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.upload-progress {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(244, 244, 238, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(244, 244, 238, 0.64);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.upload-progress-head span:last-child {
  color: rgba(244, 244, 238, 0.86);
}

.upload-progress-list {
  display: grid;
  gap: 0.48rem;
}

.upload-progress-item {
  --upload-progress: 0%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.24rem 0.6rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(244, 244, 238, 0.12);
  background: #000;
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-progress-item.is-active {
  border-color: rgba(155, 231, 255, 0.34);
  background: rgba(155, 231, 255, 0.035);
}

.upload-progress-item.is-complete {
  border-color: rgba(199, 255, 105, 0.22);
}

.upload-progress-item.is-error {
  border-color: rgba(255, 92, 92, 0.42);
}

.upload-progress-kind {
  display: inline-grid;
  place-items: center;
  min-width: 2.3rem;
  height: 1.45rem;
  border: 1px solid rgba(244, 244, 238, 0.16);
  color: rgba(244, 244, 238, 0.72);
  font-family: var(--font-ui);
  font-size: 0.58rem;
}

.upload-progress-name {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-meta,
.upload-progress-status {
  color: rgba(244, 244, 238, 0.48);
  font-family: var(--font-ui);
  font-size: 0.62rem;
}

.upload-progress-status {
  grid-column: 2 / 4;
}

.upload-progress-bar {
  grid-column: 1 / -1;
  height: 2px;
  overflow: hidden;
  background: rgba(244, 244, 238, 0.12);
}

.upload-progress-bar span {
  display: block;
  width: var(--upload-progress);
  height: 100%;
  background: linear-gradient(90deg, rgba(244, 244, 238, 0.88), rgba(155, 231, 255, 0.82));
  box-shadow: 0 0 16px rgba(155, 231, 255, 0.32);
  transition: width 160ms linear, background 180ms ease;
}

.upload-progress[data-state="complete"] .upload-progress-bar span {
  background: linear-gradient(90deg, rgba(244, 244, 238, 0.9), rgba(199, 255, 105, 0.76));
}

.upload-progress[data-state="error"] .upload-progress-bar span {
  background: rgba(255, 92, 92, 0.78);
  box-shadow: 0 0 14px rgba(255, 92, 92, 0.28);
}

.viewer-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(300px, 0.48fr);
  width: min(1480px, calc(100vw - 2rem));
  max-height: min(900px, calc(100vh - 2rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.viewer:not([hidden]) .viewer-panel {
  animation: viewer-rise 560ms cubic-bezier(0.18, 0.72, 0.18, 1);
}

.viewer-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  background: #000;
}

.viewer-media {
  min-height: min(76vh, 780px);
  background: #000;
}

.viewer-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.viewer-stage::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 244, 238, 0.08);
  pointer-events: none;
  content: "";
}

.viewer-media img,
.viewer-media video,
.viewer-media canvas {
  width: 100%;
  height: 100%;
  max-height: min(900px, calc(100vh - 2rem));
  object-fit: contain;
}

.viewer-stage .archive-slate {
  min-height: inherit;
}

.viewer-nav-button {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(244, 244, 238, 0.22);
  border-radius: 50%;
  color: rgba(244, 244, 238, 0.76);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
  font-family: var(--font-ui);
  font-size: 1.4rem;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.viewer-nav-button:hover,
.viewer-nav-button:focus-visible {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(244, 244, 238, 0.62);
  color: var(--text);
}

.viewer-prev {
  left: 1rem;
}

.viewer-next {
  right: 1rem;
}

.viewer-asset-count {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  padding-top: 0.38rem;
  border-top: 1px solid rgba(244, 244, 238, 0.28);
  color: rgba(244, 244, 238, 0.52);
  font-family: var(--font-ui);
  font-size: 0.66rem;
}

.viewer-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 2.4rem);
  border-left: 1px solid var(--line);
}

.viewer-copy h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  font-weight: 300;
  line-height: 0.92;
}

.viewer-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(244, 244, 238, 0.64);
  line-height: 1.9;
}

.viewer-context {
  display: grid;
  gap: 0.42rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(244, 244, 238, 0.46);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}

.viewer-download {
  margin-top: 1rem;
}

.viewer-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.viewer-thumbs button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(244, 244, 238, 0.14);
  border-radius: 0;
  color: rgba(244, 244, 238, 0.52);
  background: #000;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.viewer-thumbs button:hover,
.viewer-thumbs button:focus-visible,
.viewer-thumbs button.active {
  transform: translateY(-1px);
  border-color: rgba(244, 244, 238, 0.72);
}

.viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

@keyframes viewer-rise {
  0% {
    transform: translateY(18px) scale(0.985);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.82rem 1rem;
  transform: translateY(1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .hero-section,
  .resume-layout,
  .viewer-panel {
    grid-template-columns: 1fr;
  }

  .hero-section {
    gap: 2.6rem;
    padding-top: 3.6rem;
  }

  .transition-section {
    min-height: 86svh;
  }

  .transition-copy {
    max-width: min(620px, 82vw);
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .profile-block {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline article {
    padding-left: 0;
  }

  .identity-figure {
    min-height: 520px;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .identity-figure::before,
  .identity-figure::after {
    left: 0;
  }

  .identity-figure img {
    width: min(62vw, 390px);
  }

  .logo-signal {
    width: 100%;
    min-height: min(78vw, 660px);
    margin-left: 0;
  }

  .liquid-metal-core {
    width: min(94vw, 760px);
    margin-left: 0;
  }

  .logo-signal-shell {
    bottom: 4%;
    width: min(500px, 64%);
  }

  .logo-signal-meta {
    right: auto;
    bottom: 1rem;
    left: 0;
  }

  .taxonomy-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 0;
  }

  .section-heading.wide,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .work-module-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
  }

  .work-module-count {
    justify-self: start;
  }

  .work-card,
  .work-card.feature,
  .work-card.layout-hero,
  .work-card.layout-wide,
  .work-card.layout-tall,
  .work-card.layout-square,
  .work-card.has-preview.media-landscape,
  .work-card.has-preview.media-portrait,
  .work-card.has-preview.media-square {
    grid-column: span 6;
  }

  .viewer-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .viewer-thumbs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .contact-section address {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: 1fr 28px;
    align-items: start;
    min-height: auto;
    padding: 0.85rem 1rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    gap: 0.7rem;
  }

  .brand small {
    max-width: 12rem;
  }

  .brand-mark {
    width: 108px;
  }

  .logo-signal {
    min-height: 72vw;
    padding: 0.8rem 0 1.2rem;
  }

  .liquid-metal-core {
    width: min(112vw, 520px);
    margin-left: -7vw;
  }

  .liquid-metal-readout {
    right: 10%;
    bottom: 10%;
    font-size: 0.54rem;
  }

  .logo-signal-shell {
    bottom: 4%;
    left: 0;
    width: min(340px, 72%);
  }

  .logo-signal-meta {
    display: none;
  }

  .logo-ruler {
    display: none;
  }

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

  .hero-section,
  .transition-section,
  .resume-section,
  .works-section,
  .contact-section {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 3rem;
  }

  .transition-section {
    min-height: 78svh;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .transition-copy {
    max-width: 100%;
  }

  .transition-copy h2 {
    font-size: 2.4rem;
  }

  .transition-ruler {
    right: 1rem;
    bottom: 2rem;
  }

  .hero-section::before {
    right: 1rem;
    left: 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: 2.52rem;
  }

  h2 {
    font-size: 1.92rem;
  }

  .hero-lede {
    font-size: 0.95rem;
  }

  .hero-stats,
  .work-grid,
  .module-grid,
  .admin-form,
  .admin-work-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  .work-card,
  .work-card.feature,
  .work-card.layout-hero,
  .work-card.layout-wide,
  .work-card.layout-tall,
  .work-card.layout-square,
  .work-card.has-preview.media-landscape,
  .work-card.has-preview.media-portrait,
  .work-card.has-preview.media-square {
    grid-column: 1;
    min-height: 320px;
    aspect-ratio: 0.88;
  }

  .work-card img {
    padding: 0;
  }

  .work-info {
    opacity: 1;
    transform: none;
  }

  .identity-figure {
    min-height: 430px;
  }

  .identity-figure img {
    width: min(84vw, 330px);
    max-height: 430px;
  }

  .identity-figure-meta {
    right: 0;
    bottom: 0.7rem;
    font-size: 0.54rem;
  }

  .login-modal,
  .viewer {
    padding: 0.75rem;
  }

  .viewer-panel {
    max-height: calc(100vh - 1.5rem);
  }

  .viewer-media {
    min-height: 320px;
  }

  .viewer-nav-button {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .viewer-prev {
    left: 0.6rem;
  }

  .viewer-next {
    right: 0.6rem;
  }

  .viewer-thumbs,
  .admin-work-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .motion-reveal,
  .work-module.motion-reveal,
  .work-card.motion-reveal,
  .transition-copy,
  .transition-ruler {
    transform: none !important;
    translate: 0 0 !important;
    opacity: 1 !important;
  }

  .transition-video {
    transform: none !important;
  }
}
