/* src/styles/index.css */
:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #0a0b0c;
  --surface: #111315;
  --surface-2: #17191b;
  --text: #f1f0eb;
  --muted: #929690;
  --muted-2: #686c68;
  --line: rgba(241, 240, 235, 0.17);
  --line-strong: rgba(241, 240, 235, 0.32);
  --accent: #e76747;
  --page: min(1600px, calc(100vw - 64px));
  --ease: cubic-bezier(0.22, 0.7, 0.22, 1);
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

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

::selection {
  color: var(--bg);
  background: var(--accent);
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--page);
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  width: max-content;
  display: grid;
  gap: 5px;
  line-height: 1;
}

.wordmark strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.wordmark small {
  font-size: 0.46rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a,
.header-index {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  transition: color 180ms ease;
}

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

.site-nav a:hover {
  color: var(--text);
}

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

.header-index {
  justify-self: end;
}

.hero {
  --hero-focus-x: 50%;
  --hero-focus-y: 50%;
  --hero-field-x: 0px;
  --hero-field-y: 0px;
  --hero-field-scroll: 0px;
  --hero-copy-x: 0px;
  --hero-copy-y: 0px;
  --hero-copy-scroll: 0px;
  --hero-title-x: 2px;
  --hero-title-y: 2px;
  --hero-focus-rotate: 0deg;
  --hero-portrait-front-x: 0px;
  --hero-portrait-front-y: 0px;
  --hero-portrait-mid-x: 0px;
  --hero-portrait-mid-y: 0px;
  --hero-portrait-tilt-x: 0deg;
  --hero-portrait-tilt-y: 0deg;
  --hero-scroll-progress: 0;
  position: relative;
  isolation: isolate;
  width: var(--page);
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: block;
  overflow: clip;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  height: 1px;
  content: "";
  pointer-events: none;
  background: var(--line);
}

.hero,
.hero a,
.hero button,
.hero [role="button"] {
  cursor: none;
}

.hero-interaction {
  position: absolute;
  top: 88px;
  right: 0;
  bottom: -64px;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, var(--hero-field-scroll), 0);
}

.hero-chroma {
  position: absolute;
  inset: -22% -14%;
  opacity: 0.72;
  transform: translate3d(var(--hero-field-x), var(--hero-field-y), 0) scale(1.04);
}

.hero-chroma-blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(112px);
  mix-blend-mode: screen;
}

.hero-chroma-blob--blue {
  top: 8%;
  left: -5%;
  width: 48%;
  height: 72%;
  background: rgba(27, 92, 125, 0.34);
  transform: rotate(-12deg);
}

.hero-chroma-blob--magenta {
  top: 18%;
  left: 38%;
  width: 42%;
  height: 58%;
  background: rgba(154, 29, 91, 0.26);
  transform: rotate(18deg);
}

.hero-chroma-blob--amber {
  right: -7%;
  bottom: -4%;
  width: 40%;
  height: 64%;
  background: rgba(215, 88, 38, 0.3);
  transform: rotate(-20deg);
}

.hero-film-field {
  position: absolute;
  inset: -46px -28px;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%, 100% 25%;
  transform: translate3d(var(--hero-field-x), var(--hero-field-y), 0);
  -webkit-mask-image: radial-gradient(
    ellipse 36% 50% at var(--hero-focus-x) var(--hero-focus-y),
    #000 0%,
    rgba(0, 0, 0, 0.88) 46%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 36% 50% at var(--hero-focus-x) var(--hero-focus-y),
    #000 0%,
    rgba(0, 0, 0, 0.88) 46%,
    transparent 100%
  );
  transition: opacity 260ms var(--ease);
}

.hero-film-field::after {
  position: absolute;
  top: var(--hero-focus-y);
  left: var(--hero-focus-x);
  width: clamp(90px, 10vw, 150px);
  height: 1px;
  content: "";
  background: rgba(255, 91, 55, 0.58);
  transform: translate(-50%, -50%) rotate(var(--hero-focus-rotate));
}

.hero-capture-halo {
  position: absolute;
  top: var(--hero-focus-y);
  left: var(--hero-focus-x);
  z-index: 1;
  width: clamp(170px, 17vw, 250px);
  aspect-ratio: 1.52 / 1;
  opacity: 0;
  pointer-events: none;
  border: 0;
  border-radius: 2px;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%) rotate(var(--hero-focus-rotate));
  transform-origin: center;
  will-change: opacity, box-shadow;
}


.hero-focus-frame {
  position: absolute;
  z-index: 2;
  top: var(--hero-focus-y);
  left: var(--hero-focus-x);
  width: clamp(170px, 17vw, 250px);
  aspect-ratio: 1.52 / 1;
  opacity: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 18px 54px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(1.22) brightness(1.06);
  backdrop-filter: blur(14px) saturate(1.22) brightness(1.06);
  transform: translate(-50%, -50%) rotate(var(--hero-focus-rotate));
  transition: opacity 220ms var(--ease);
}

.hero-focus-frame::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 32px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 1px 32px no-repeat,
    linear-gradient(rgba(255,255,255,0.48), rgba(255,255,255,0.48)) 100% 0 / 32px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.48), rgba(255,255,255,0.48)) 100% 0 / 1px 32px no-repeat,
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) 0 100% / 32px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.32), rgba(255,255,255,0.32)) 0 100% / 1px 32px no-repeat,
    linear-gradient(rgba(255,255,255,0.48), rgba(255,255,255,0.48)) 100% 100% / 32px 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.48), rgba(255,255,255,0.48)) 100% 100% / 1px 32px no-repeat;
}

.hero-focus-frame::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    128deg,
    rgba(255, 255, 255, 0.11),
    transparent 34%,
    transparent 68%,
    rgba(255, 105, 70, 0.055)
  );
}

.hero-capture-photo,
.hero-capture-flash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-capture-photo {
  z-index: 1;
  opacity: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transform-origin: center;
}

.hero-capture-flash {
  z-index: 4;
  opacity: 0;
  background: #fff;
}

.hero[data-pointer="active"] .hero-film-field {
  opacity: 0.42;
}

.hero[data-pointer="active"] .hero-focus-frame {
  opacity: 0.72;
}

.hero .hero-focus-frame[data-capturing="true"] {
  opacity: 1;
}

.hero[data-pointer="active"] .hero-chroma {
  will-change: transform;
}

.hero-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(680px, 76vh, 800px);
  padding: clamp(112px, 13vh, 136px) 0 clamp(48px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-portrait-stack {
  position: relative;
  z-index: 2;
  width: clamp(192px, 15.75vw, 243px);
  aspect-ratio: 3 / 4;
  margin: 0 0 0 clamp(6px, 1.25vw, 18px);
  perspective: 1200px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-portrait-card,
.hero-portrait {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-portrait-card {
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.hero-portrait-card--mid {
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 34%),
    linear-gradient(145deg, #4b1f28 0%, #32141d 56%, #1d1117 100%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transform: translate3d(
      calc(11px + var(--hero-portrait-mid-x)),
      calc(10px + var(--hero-portrait-mid-y)),
      -10px
    ) rotate(2deg);
}

.hero-portrait {
  z-index: 2;
  margin: 0;
  overflow: hidden;
  background: #111214;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate3d(
      var(--hero-portrait-front-x),
      var(--hero-portrait-front-y),
      0
    ) rotateX(var(--hero-portrait-tilt-x)) rotateY(var(--hero-portrait-tilt-y));
  transition: box-shadow 260ms var(--ease);
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 36%);
  mix-blend-mode: soft-light;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 43%;
  opacity: 0;
  filter: contrast(1.035) brightness(0.94) blur(2px);
  transform: scale(1.012);
  transition:
    opacity 350ms ease,
    filter 450ms ease,
    transform 520ms var(--ease);
}

.hero-portrait.is-image-loaded img {
  opacity: 1;
  filter: contrast(1.035) brightness(0.94) blur(0);
  transform: scale(1);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(100%, 1180px);
  margin-top: clamp(24px, 3vh, 32px);
  padding-right: clamp(24px, 5vw, 88px);
  opacity: calc(1 - var(--hero-scroll-progress) * 0.12);
  transform: translate3d(
    var(--hero-copy-x),
    calc(var(--hero-copy-y) + var(--hero-copy-scroll)),
    0
  );
}

.hero-eyebrow,
.section-heading > div > span,
.prototype-kicker {
  margin: 0 0 22px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title-lockup {
  position: relative;
  display: grid;
  width: fit-content;
  margin: 0 0 36px;
}

.hero h1,
.hero-title-echo {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(4.2rem, 10.8vw, 11rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.075em;
}

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

.hero-title-echo {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 91, 55, 0.5);
  clip-path: inset(54% -10px -12px -10px);
  opacity: 0.58;
  transform: translate3d(var(--hero-title-x), var(--hero-title-y), 0);
}

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  max-width: 680px;
}

.hero-meta p {
  margin: 0;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.hero-meta p:last-child {
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 28px;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 220ms var(--ease);
}

.scroll-cue span {
  color: var(--accent);
  transform: translateY(-1px);
  transition: transform 220ms var(--ease);
}

.scroll-cue:hover {
  color: var(--text);
}

.scroll-cue:hover span {
  transform: translateY(3px);
}

.works-section,
.on-set-section {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 9vw, 150px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 0.38fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 62px;
}

.section-heading > div > span {
  display: block;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.7rem);
  font-weight: 430;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.works-heading > p {
  margin: 0;
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.works-heading > p strong {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
}

.category-switcher {
  position: relative;
  z-index: 20;
  margin-bottom: 24px;
}

.category-filter {
  display: grid;
  width: 100%;
  min-width: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.category-filter-measure {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  visibility: hidden;
  overflow: visible;
  pointer-events: none;
}

.category-filter-measure-item {
  min-height: 88px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  white-space: nowrap;
}

.category-filter-measure-item span {
  font-size: 0.9rem;
}

.category-filter-measure-item small {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-filter button {
  position: relative;
  min-height: 88px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.category-filter button:last-child {
  border-right: 0;
}

.category-filter button::before {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease);
}

.category-filter button:hover,
.category-filter button.is-active {
  background: rgba(255, 255, 255, 0.035);
}

.category-filter button.is-active::before {
  transform: scaleX(1);
}

.category-filter button span {
  font-size: 0.9rem;
  white-space: nowrap;
}

.category-filter button small {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.category-dropdown {
  position: relative;
  min-height: 88px;
}

.category-select-trigger {
  width: 100%;
  min-height: 88px;
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.category-select-trigger > span {
  display: grid;
  gap: 10px;
}

.category-select-trigger strong {
  font-size: 0.9rem;
  font-weight: 400;
}

.category-select-trigger small,
.category-select-menu small {
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-select-trigger i {
  width: 10px;
  height: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 180ms var(--ease);
}

.category-select-trigger[aria-expanded="true"] i {
  transform: translateY(3px) rotate(225deg);
}

.category-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
  padding: 6px;
  display: grid;
  border: 1px solid var(--line-strong);
  background: rgba(11, 12, 13, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
}

.category-select-menu button {
  min-height: 52px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.category-select-menu button:hover,
.category-select-menu button.is-active {
  background: rgba(255, 255, 255, 0.055);
}

.category-select-menu button.is-active {
  box-shadow: inset 2px 0 0 var(--accent);
}

.subtype-filter {
  min-height: 54px;
  margin-bottom: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.subtype-filter button {
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: 180ms ease;
}

.subtype-filter button:hover,
.subtype-filter button.is-active {
  border-color: var(--line-strong);
  color: var(--text);
}

.subtype-filter button span {
  margin-left: 5px;
  color: var(--muted-2);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 4vw, 76px) clamp(18px, 2vw, 34px);
  align-items: start;
}

.work-card {
  min-width: 0;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(28px);
  transition:
    opacity 760ms var(--ease),
    transform 820ms var(--ease),
    filter 720ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.work-card.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.work-card-button {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.work-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.work-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.055) 44%, transparent 60%),
    var(--surface-2);
  background-size: 220% 100%;
  animation: work-cover-loading 1.5s ease-in-out infinite;
  transition: opacity 360ms ease;
  pointer-events: none;
}

.work-card.is-image-loaded .work-cover::before {
  opacity: 0;
  animation: none;
}

.work-cover-scale {
  position: absolute;
  inset: 0;
  display: block;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.001);
  transition:
    opacity 520ms ease,
    transform 650ms var(--ease),
    filter 350ms ease;
}

.work-card.is-image-loaded .work-cover img {
  opacity: 1;
}

@keyframes work-cover-loading {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 8, 0.08);
  transition: background 300ms ease;
}

.work-number,
.format-mark {
  position: absolute;
  top: 15px;
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.work-number {
  left: 16px;
  opacity: 0;
  transform: translateY(5px);
  transition: 220ms var(--ease);
}

.format-mark {
  right: 16px;
  padding: 5px 7px;
  background: rgba(10, 11, 12, 0.56);
  color: rgba(255, 255, 255, 0.82);
}

.play-mark,
.placeholder-player-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -47%) scale(0.94);
  transition: 240ms var(--ease);
}

.play-mark i,
.placeholder-player-icon i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

.work-copy {
  padding-top: 17px;
  display: block;
  transition: transform 260ms var(--ease);
}

.work-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.work-line strong {
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.work-line > span {
  padding-top: 4px;
  flex: 0 0 auto;
  font-size: 0.58rem;
  color: var(--muted-2);
}

.work-tags {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.61rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.work-tags i {
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
  font-style: normal;
  color: var(--muted-2);
}

.work-description {
  margin-top: 9px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-role {
  margin-top: 8px;
  display: block;
  font-size: 0.69rem;
  line-height: 1.5;
  color: var(--muted);
}

.work-card.is-compact .work-copy {
  padding-top: 14px;
}

.work-card.is-compact .work-tags {
  margin-top: 7px;
}

.work-card-button:hover .work-cover img {
  transform: scale(1.035);
  filter: saturate(1.05);
}

.work-card-button:hover .work-overlay {
  background: rgba(7, 8, 8, 0.32);
}

.work-card-button:hover .play-mark,
.work-card-button:hover .work-number,
.work-card-button:focus-visible .play-mark,
.work-card-button:focus-visible .work-number {
  opacity: 1;
}

.work-card-button:hover .play-mark,
.work-card-button:focus-visible .play-mark {
  transform: translate(-50%, -50%) scale(1);
}

.work-card-button:hover .work-copy {
  transform: translateY(-2px);
}

.work-load-sentinel {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.work-load-sentinel span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.25;
  animation: work-load-dot 1.15s ease-in-out infinite;
}

.work-load-sentinel span:nth-child(2) { animation-delay: 120ms; }
.work-load-sentinel span:nth-child(3) { animation-delay: 240ms; }

@keyframes work-load-dot {
  0%, 70%, 100% { opacity: 0.22; transform: translateY(0); }
  35% { opacity: 0.82; transform: translateY(-3px); }
}

.on-set-section {
  border-top: 1px solid var(--line);
}

.on-set-heading > p {
  max-width: 360px;
  margin: 0;
  padding-bottom: 6px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--muted);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.set-photo {
  grid-column: span 4;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.set-photo:nth-child(1) {
  grid-column: 1 / span 7;
}

.set-photo:nth-child(2) {
  grid-column: 9 / span 4;
  margin-top: 92px;
}

.set-photo:nth-child(3) {
  grid-column: 2 / span 4;
  margin-top: 38px;
}

.set-photo:nth-child(4) {
  grid-column: 7 / span 3;
  margin-top: 110px;
}

.set-photo:nth-child(5) {
  grid-column: 10 / span 3;
  margin-top: 32px;
}

.set-photo img {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  background: var(--surface-2);
  filter: saturate(0.82);
  transition: filter 350ms ease, transform 450ms var(--ease);
}

.set-photo.is-portrait img {
  aspect-ratio: 3 / 4;
}

.set-photo > span {
  margin-top: 11px;
  display: flex;
  gap: 16px;
  font-size: 0.64rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.set-photo > span i {
  font-style: normal;
  color: var(--accent);
}

.set-photo:hover img {
  filter: saturate(1);
  transform: scale(0.995);
}

.section-loading {
  width: var(--page);
  height: 30vh;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.site-footer {
  width: var(--page);
  min-height: 180px;
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  border-top: 1px solid var(--line-strong);
}

.site-footer > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer strong {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.site-footer span,
.site-footer a,
.site-footer small {
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-footer a {
  padding: 12px;
}

.site-footer small {
  justify-self: end;
}

.modal-backdrop,
.photo-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: clamp(16px, 3.5vw, 54px);
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(3, 4, 5, 0.94);
  backdrop-filter: blur(12px);
}

.video-modal {
  width: min(1280px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.video-modal.is-portrait {
  width: min(920px, 100%);
}

.modal-topline {
  min-height: 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-topline > span {
  padding-top: 8px;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.modal-close {
  min-width: 82px;
  min-height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.modal-close i {
  position: relative;
  width: 28px;
  height: 28px;
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.modal-close i::before,
.modal-close i::after {
  position: absolute;
  top: 13px;
  left: 7px;
  width: 12px;
  height: 1px;
  content: "";
  background: var(--text);
}

.modal-close i::before { transform: rotate(45deg); }
.modal-close i::after { transform: rotate(-45deg); }

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex: 0 1 auto;
  overflow: hidden;
  background: #000;
}

.video-modal.is-portrait .video-stage {
  width: min(390px, 52vw, calc(70vh * 9 / 16));
  aspect-ratio: 9 / 16;
  align-self: center;
}

.video-iframe,
.native-video-shell,
.placeholder-player {
  width: 100%;
  height: 100%;
  border: 0;
}

.native-video-shell {
  position: relative;
  background: #000;
}

.native-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.native-video-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 5, 0.9);
  color: var(--text);
  font-size: 0.76rem;
  text-align: center;
}

.placeholder-player {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080909;
}

.placeholder-player > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65);
}

.placeholder-player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.12), rgba(5, 6, 6, 0.82));
}

.placeholder-player-icon {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.placeholder-player > div {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(18px, 3vw, 40px);
}

.placeholder-player > div span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.56rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.14em;
}

.placeholder-player > div strong {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.45rem);
  font-weight: 500;
}

.placeholder-player > div p {
  margin: 8px 0 0;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.56);
}

.video-modal.is-portrait .placeholder-player > div p {
  display: none;
}

.player-message {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.player-message span {
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.player-message p {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.modal-meta {
  padding: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.5fr);
  gap: 40px;
}

.modal-meta.is-compact {
  grid-template-columns: 1fr;
  gap: 0;
}

.modal-compact-details {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
}

.modal-meta h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 450;
  letter-spacing: -0.03em;
}

.modal-meta p {
  max-width: 680px;
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}

.modal-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.modal-meta dt {
  margin-bottom: 7px;
  font-size: 0.54rem;
  color: var(--muted-2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.modal-meta dd {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.5;
}

.photo-lightbox-dialog {
  position: relative;
  width: min(1200px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-lightbox-dialog button {
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.68rem;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.photo-lightbox-dialog button span {
  margin-left: 10px;
  font-size: 1.2rem;
}

.photo-lightbox-dialog img {
  max-width: 100%;
  max-height: calc(92vh - 94px);
  object-fit: contain;
}

.photo-lightbox-dialog p {
  margin: 12px 0 0;
  align-self: flex-start;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.password-prototype {
  min-height: 100dvh;
  padding: 0 max(28px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: 88px 1fr 64px;
  background: var(--bg);
}

.password-prototype header,
.password-prototype footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.password-prototype footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.password-prototype section {
  width: min(760px, 100%);
  margin: auto;
  padding: 70px 0;
}

.password-prototype h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 450;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.prototype-intro {
  max-width: 430px;
  margin: 40px 0 56px;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
}

.password-prototype form label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.password-prototype form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--line-strong);
}

.password-prototype input {
  min-width: 0;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.password-prototype button {
  min-width: 82px;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.prototype-warning {
  max-width: 620px;
  margin: 22px 0 36px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 0.68rem;
  line-height: 1.65;
  color: var(--muted);
}

.password-prototype section > a {
  display: inline-block;
  padding: 12px 0;
  font-size: 0.65rem;
  color: var(--muted);
}

@media (max-width: 1180px) {
  :root { --page: calc(100vw - 48px); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-meta { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 32px); }
  .site-header {
    height: 68px;
    grid-template-columns: 1fr auto;
  }
  .site-nav { gap: 20px; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .header-index { display: none; }
  .hero {
    height: auto;
    min-height: 0;
    padding: 0;
  }
  .hero-layout {
    min-height: 0;
    padding: 88px 0 48px;
  }
  .hero-interaction { top: 68px; }
  .hero-portrait-stack {
    width: 162px;
    margin-left: 2px;
  }
  .hero-portrait {
    transform: none;
  }
  .hero-portrait-card--mid {
    transform: translate3d(8px, 8px, -10px) rotate(1.5deg);
  }
  .hero-chroma { opacity: 0.5; }
  .hero-chroma-blob { filter: blur(88px); }
  .hero-film-field {
    opacity: 0.16;
    background-size: 50% 100%, 100% 33.333%;
    -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 44%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 6%, #000 44%, transparent 100%);
  }
  .hero-focus-frame { display: none; }
  .hero-copy { margin-top: 24px; padding-right: 0; }
  .hero-title-lockup { margin-bottom: 28px; }
  .hero h1 {
    font-size: clamp(3.6rem, 20vw, 7rem);
  }
  .hero-title-echo { font-size: clamp(3.6rem, 20vw, 7rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 7px; }
  .hero-meta p { font-size: 0.7rem; }
  .scroll-cue { display: flex; right: 0; bottom: 20px; }
  .works-section,
  .on-set-section { padding: 78px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 42px; }
  .section-heading h2 { font-size: clamp(3.4rem, 17vw, 5.5rem); }
  .works-heading > p { border-top: 1px solid var(--line); padding-top: 14px; }
  .category-filter button { min-height: 78px; padding: 15px; }
  .category-dropdown,
  .category-select-trigger { min-height: 78px; }
  .subtype-filter {
    margin-right: -16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .subtype-filter::-webkit-scrollbar { display: none; }
  .subtype-filter button { flex: 0 0 auto; min-height: 42px; }
  .work-grid { grid-template-columns: 1fr; gap: 46px; }
  .work-line strong { font-size: 1.08rem; }
  .work-description { font-size: 0.76rem; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .set-photo,
  .set-photo:nth-child(n) { grid-column: span 1; margin-top: 0; }
  .set-photo:nth-child(1),
  .set-photo:nth-child(5) { grid-column: 1 / -1; }
  .set-photo > span { flex-direction: column; gap: 3px; }
  .site-footer {
    min-height: 170px;
    grid-template-columns: 1fr auto;
  }
  .site-footer > div { max-width: 230px; }
  .site-footer a { align-self: center; }
  .site-footer small { display: none; }
  .modal-backdrop,
  .photo-lightbox {
    padding: max(10px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    align-items: center;
  }
  .video-modal { max-height: calc(100dvh - 22px); }
  .modal-topline { min-height: 48px; }
  .modal-topline > span { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .video-stage { flex: 0 0 auto; }
  .video-modal.is-portrait .video-stage {
    width: min(78vw, calc((100dvh - 208px) * 9 / 16));
    max-height: calc(100dvh - 208px);
  }
  .modal-meta { padding-top: 15px; gap: 12px; }
  .modal-meta p { display: none; }
  .modal-meta dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .placeholder-player > div { padding: 16px; }
  .placeholder-player-icon { width: 42px; }
  .password-prototype { grid-template-rows: 68px 1fr 50px; padding-inline: 20px; }
  .password-prototype section { padding: 42px 0; }
  .password-prototype h1 { font-size: clamp(3.8rem, 21vw, 6.5rem); }
  .prototype-intro { margin: 32px 0 44px; }
  .password-prototype footer span:last-child { display: none; }
}

@media (max-width: 460px) {
  .photo-grid { grid-template-columns: 1fr; }
  .set-photo,
  .set-photo:nth-child(n) { grid-column: 1; }
  .set-photo.is-portrait img { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .hero-copy,
  .hero-interaction,
  .hero-chroma,
  .hero-film-field,
  .hero-title-echo,
  .hero-portrait {
    transform: none !important;
  }
  .hero-copy { opacity: 1; }
  .hero-film-field {
    opacity: 0.18 !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 58%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 12%, #000 58%, transparent 100%);
  }
  .hero-focus-frame { display: none; }
}


@media (prefers-reduced-motion: reduce) {
  .work-card {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .work-cover::before,
  .work-load-sentinel span {
    animation: none;
  }
}
