/* MTAP 乐在其萌 — Editorial Film Production Studio Design System
 * Locked tokens:
 *   1 Brand Accent: #2563EB (MTAP Cobalt)
 *   2 Text Grays:   #F4F4F0 (Primary), #8A8A8E (Secondary)
 *   3 Font Tiers:   Display (clamp 28–56px), Body (15px), Meta/Mono (12px)
 *   4px/8px Grid:   strict multiples of 4/8px; zero nested cards; 1px hairlines
 */

:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f0;
  --muted: #8a8a8e;
  --accent: #2563eb;

  --fs-display: clamp(28px, 4.2vw, 56px);
  --fs-body: 15px;
  --fs-meta: 12px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container: 1360px;
  --topbar-h: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.accent-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 2px Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 60;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Top Bar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 40;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-cn {
  font-size: var(--fs-meta);
  color: var(--muted);
  font-weight: 500;
}

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

.nav-link {
  font-size: var(--fs-meta);
  color: var(--muted);
  transition: color 0.16s ease;
}

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

/* Single Primary CTA on Page */
.btn-primary {
  height: 32px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--text);
  font-size: var(--fs-meta);
  font-weight: 500;
  border-radius: 2px;
  transition: opacity 0.16s ease;
}

.btn-primary:hover {
  opacity: 0.88;
}

.ghost-btn {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: var(--fs-meta);
  color: var(--muted);
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.ghost-btn:hover,
.ghost-btn.is-active {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.text-btn {
  font-size: var(--fs-meta);
  color: var(--muted);
  transition: color 0.16s ease;
}

.text-btn:hover,
.text-btn.is-active {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 0px);
  padding-top: var(--topbar-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.46) contrast(1.06);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-img.is-kenburns {
  animation: kenBurns 18s ease-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.055); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.title-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.title-line {
  display: inline-block;
  animation: maskRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes maskRise {
  from {
    transform: translateY(105%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.reveal-up {
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes fadeSlideUp {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-progress-track {
  width: 100%;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.45) 0%, rgba(10, 10, 11, 0.25) 45%, rgba(10, 10, 11, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-switch {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-counter {
  color: var(--muted);
}

/* Sections */
.section {
  padding: 64px 0 80px;
  scroll-margin-top: var(--topbar-h);
}

.footer {
  scroll-margin-top: var(--topbar-h);
}

[hidden] {
  display: none !important;
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Works Controls & Category Rail */
.works-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.search-wrap .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

.search-wrap input {
  background: transparent;
  border: 0;
  outline: 0;
  width: 180px;
  font-size: var(--fs-meta);
  color: var(--text);
}

.search-wrap input::placeholder {
  color: var(--muted);
}

.view-toggle {
  display: inline-flex;
  gap: 4px;
}

.category-rail {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  white-space: nowrap;
  font-size: var(--fs-meta);
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.cat-tab:hover {
  color: var(--text);
}

.cat-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.cat-count {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--muted);
}

/* Chapter Divider Banner */
.chapter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

/* Flagship 2-Col Editorial Opener */
.featured-reel {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.featured-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-card .work-frame {
  aspect-ratio: 16 / 9;
}

/* Works Grid — Zero Nested Cards, Borderless 16:9 Cinema Frames */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.work-item {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.work-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
}

.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.work-item:hover .work-frame img,
.featured-card:hover .work-frame img {
  transform: scale(1.035);
}

/* 1px Cinema Viewfinder Corner Reticles on Hover */
.frame-reticle {
  position: absolute;
  inset: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.frame-reticle::before,
.frame-reticle::after {
  content: "";
  position: absolute;
  inset: 0;
}

.frame-reticle::before {
  background:
    linear-gradient(var(--text), var(--text)) top left / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) top left / 1px 12px no-repeat,
    linear-gradient(var(--text), var(--text)) top right / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) top right / 1px 12px no-repeat;
}

.frame-reticle::after {
  background:
    linear-gradient(var(--text), var(--text)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom right / 12px 1px no-repeat,
    linear-gradient(var(--text), var(--text)) bottom right / 1px 12px no-repeat;
}

.frame-cue {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 2px 8px;
  background: rgba(10, 10, 11, 0.78);
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.work-item:hover .frame-reticle,
.featured-card:hover .frame-reticle {
  opacity: 0.85;
}

.work-item:hover .frame-cue,
.featured-card:hover .frame-cue {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor-Following Floating Still Preview for List View */
.list-hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  aspect-ratio: 16 / 9;
  z-index: 50;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.16s ease;
  will-change: transform;
}

.list-hover-preview.is-visible {
  opacity: 1;
}

.list-hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inline Studio Filmstrips */
.inline-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.strip-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  overflow: hidden;
}

.strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.strip-thumb:hover img {
  transform: scale(1.05);
}

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.work-title {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-sub {
  font-size: var(--fs-meta);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Works List (Film Slate Index View) */
.works-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.list-row {
  display: grid;
  grid-template-columns: 64px 104px 1fr 112px 72px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  transition: background 0.14s ease;
}

.list-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.list-thumb {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
}

.list-title {
  font-size: var(--fs-body);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-wrap {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.empty-state {
  padding: 64px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Studio Profile Blocks */
.studio-block {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.block-title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.body-text {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.65;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.timeline-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

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

.scope-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

.adv-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.adv-title {
  font-size: var(--fs-body);
  font-weight: 500;
  margin-bottom: 6px;
}

.awards-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.awards-sub {
  margin-bottom: 12px;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.plate-preview {
  margin-top: 20px;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.plate-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clients */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.client-col {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-wall-btn {
  width: 100%;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.brand-wall-btn img {
  width: 100%;
  height: auto;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-email {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.16s ease;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  gap: 20px;
  font-size: var(--fs-body);
}

.qr-box {
  width: 136px;
  height: 136px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 4px;
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.footer-bar {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Darkroom Contact Sheet Lightbox */
.lightbox,
.deck-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

/* Lightbox Bottom Filmstrip Scrubber */
.lb-scrubber {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}

.scrub-item {
  width: 76px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.48;
  transition: opacity 0.16s ease;
}

.scrub-item:hover,
.scrub-item.is-active {
  opacity: 1;
}

.scrub-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid transparent;
}

.scrub-item.is-active img {
  border-color: var(--accent);
}

.lightbox[hidden],
.deck-modal[hidden],
.zoom-overlay[hidden] {
  display: none;
}

.lb-bar {
  height: 56px;
  flex-shrink: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg);
}

.lb-info {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.lb-title {
  font-size: var(--fs-body);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lb-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.lb-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lb-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.lb-frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.lb-frame-btn {
  background: #060607;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.lb-frame-btn img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 260px;
  margin: auto;
  padding: 8px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lb-frame-btn:hover img {
  transform: scale(1.02);
}

.lb-frame-foot {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.lb-slide-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #060607;
}

.lb-slide-wrap img {
  width: 100%;
  height: auto;
}

/* Single Frame Zoom */
.zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 6, 7, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 12px;
}

.zoom-overlay img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
}

.zoom-close {
  position: fixed;
  top: 16px;
  right: 24px;
}

/* Full 219-Page Deck Index */
.deck-search {
  height: 32px;
  width: 220px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: var(--fs-meta);
  outline: 0;
}

.deck-grid {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px 16px;
  align-content: start;
}

.deck-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.deck-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
}

.deck-item-title {
  font-size: var(--fs-meta);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1024px) {
  .featured-reel {
    grid-template-columns: 1fr;
  }
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .awards-split,
  .timeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img.is-kenburns,
  .title-line,
  .reveal-up,
  .lightbox,
  .deck-modal {
    animation: none !important;
  }
  .work-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .list-row {
    grid-template-columns: 52px 1fr 56px;
  }
  .list-thumb,
  .list-cat {
    display: none;
  }
  .adv-row {
    grid-template-columns: 36px 1fr;
  }
  .search-wrap input {
    width: 130px;
  }
}
