/* ============================================================
   张方迪 · AI 剪辑设计师 — Editorial Portfolio 2026
   Black / Ivory / Lime
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #1a1a1a;
  --paper: #ece7dc;
  --paper-2: #e3ddd0;
  --ivory: #f3efe6;
  --white: #faf8f2;
  --gray: #8b8b82;
  --gray-2: #a5a59c;
  --gray-dark: #5d5d55;
  --lime: #a9fc04;
  --lime-deep: #6fbf1e;
  --olive: #5f9e00;
  --line-dark: rgba(243, 239, 230, 0.16);
  --line-dark-soft: rgba(243, 239, 230, 0.08);
  --line-paper: rgba(10, 10, 10, 0.18);
  --line-paper-soft: rgba(10, 10, 10, 0.09);
  --font-sans: "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC",
    "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Times New Roman", Georgia, serif;
  --font-script: "Snell Roundhand", "Brush Script MT", "Segoe Script", "Apple Chancery", cursive;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1320px;
  --nav-h: 78px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  --text: var(--ivory);
  --muted: var(--gray);
  --line: var(--line-dark);
  --accent: var(--lime);
}

body.modal-open,
html.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure,
figcaption {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

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

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

input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: #333;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

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

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 900;
  padding: 14px 18px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

.section {
  position: relative;
  padding: 120px 0;
  scroll-margin-top: 84px;
}

.section-paper {
  background: var(--paper);
  color: var(--ink);
  --text: var(--ink);
  --muted: var(--gray-dark);
  --line: var(--line-paper);
  --accent: var(--olive);
}

.section-dark {
  background: var(--ink);
  color: var(--ivory);
  --text: var(--ivory);
  --muted: var(--gray);
  --line: var(--line-dark);
  --accent: var(--lime);
}

.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--noise);
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.section-dark > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Cursor / progress / preloader / toast
   ============================================================ */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.25);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(169, 252, 4, 0.55);
  transition: width 0.28s var(--ease), height 0.28s var(--ease),
    background 0.28s ease, border-color 0.28s ease, opacity 0.2s ease;
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(169, 252, 4, 0.08);
  border-color: var(--lime);
}

html.has-cursor.is-cursor-active .cursor-dot,
html.has-cursor.is-cursor-active .cursor-ring {
  opacity: 1;
}

html.has-cursor.is-cursor-out .cursor-dot,
html.has-cursor.is-cursor-out .cursor-ring,
html.has-cursor.is-cursor-hidden .cursor-dot,
html.has-cursor.is-cursor-hidden .cursor-ring {
  opacity: 0 !important;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"],
html.has-cursor .cat-tile,
html.has-cursor .work-card,
html.has-cursor .rail-card,
html.has-cursor .film-frame,
html.has-cursor .archive-row {
  cursor: none;
}

html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select {
  cursor: text;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 260;
  height: 2px;
  pointer-events: none;
}

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

.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ivory);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-signature {
  font-family: var(--font-script);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  color: var(--ivory);
}

.preloader-line {
  display: block;
  width: 160px;
  height: 1px;
  background: rgba(243, 239, 230, 0.16);
  overflow: hidden;
}

.preloader-line i {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--lime);
  animation: preload 1.2s ease-in-out infinite;
}

.preloader-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--gray);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 800;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--ivory);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    border-color 0.4s ease, transform 0.45s var(--ease);
}

.site-nav.is-scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: var(--line-dark-soft);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.site-nav.is-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-signature {
  font-family: var(--font-script);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ivory);
  white-space: nowrap;
}

.brand-sub {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--gray);
  white-space: nowrap;
}

.brand-sub i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 6px 0;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(243, 239, 230, 0.68);
  transition: color 0.25s ease;
}

.nav-links a span {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--gray);
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ivory);
}

.nav-links a:hover span,
.nav-links a.is-active span {
  color: var(--lime);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--gray);
  white-space: nowrap;
}

.nav-status .dot {
  width: 5px;
  height: 5px;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(243, 239, 230, 0.4);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ivory);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-contact span {
  color: var(--lime);
  font-size: 11px;
}

.nav-contact:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.menu-btn {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(243, 239, 230, 0.25);
  color: var(--ivory);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.menu-btn svg {
  width: 17px;
  height: 17px;
}

.menu-btn:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 54px) 0 34px;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
  --text: var(--ivory);
  --muted: var(--gray);
  --line: var(--line-dark);
  --accent: var(--lime);
  display: flex;
  align-items: center;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--noise);
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 45% at 78% 36%, rgba(169, 252, 4, 0.055), transparent 70%),
    radial-gradient(80% 70% at 50% 120%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.hero-strip {
  display: flex;
  gap: 7px;
  height: 62px;
  overflow: hidden;
  max-width: 460px;
  width: 46%;
}

.strip-item {
  position: relative;
  flex: 0 0 clamp(64px, 6.4vw, 90px);
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #111;
  padding: 0;
  text-align: left;
  opacity: 0.72;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.strip-item:hover {
  opacity: 1;
  border-color: var(--lime);
}

.strip-media {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: linear-gradient(140deg, var(--a, #222), var(--b, #0a0a0a));
}

.strip-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  background:
    radial-gradient(120% 110% at 82% 6%, rgba(255, 255, 255, 0.2), transparent 56%),
    linear-gradient(140deg, var(--a, #222), var(--b, #0a0a0a));
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.strip-item:hover .strip-cover {
  filter: grayscale(0);
}

.strip-cover .strip-word {
  font-size: 7px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-media .work-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.strip-item:hover .strip-media .work-poster {
  filter: grayscale(0);
}

.strip-index {
  position: absolute;
  top: 5px;
  right: 6px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 6px;
  color: var(--lime);
}

.strip-item--still {
  cursor: default;
}

.strip-item--still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.strip-item--still:hover img {
  filter: grayscale(0);
}

.hero-top-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--gray);
  white-space: nowrap;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 48px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--gray);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
}

.hero-name {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  font-size: clamp(84px, 12.4vw, 180px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.075em;
  color: var(--ivory);
}

.hero-name span {
  display: block;
  white-space: nowrap;
}

.hero-name em {
  font-family: var(--font-script);
  font-size: clamp(20px, 2.1vw, 34px);
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--gray-2);
  margin-bottom: 0.3em;
  white-space: nowrap;
}

.hero-role {
  margin-top: 22px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.7vw, 23px);
  font-style: italic;
  letter-spacing: 0.01em;
  color: rgba(243, 239, 230, 0.86);
}

.hero-role i {
  font-style: normal;
  color: var(--lime);
  padding: 0 4px;
}

.hero-statement {
  max-width: 430px;
  margin-top: 24px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--gray);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.text-play {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ivory);
}

.play-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.play-dot svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

.text-play:hover .play-dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(169, 252, 4, 0.12);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ivory);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.text-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.3s var(--ease);
}

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

.text-link:hover svg {
  transform: translateX(3px);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 450px;
  justify-self: end;
  will-change: translate;
}

.hero-year {
  position: absolute;
  right: -28px;
  bottom: 92px;
  z-index: 0;
  font-size: clamp(120px, 14vw, 214px);
  font-weight: 600;
  line-height: 0.7;
  letter-spacing: -0.085em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 230, 0.16);
  pointer-events: none;
  user-select: none;
}

.portrait {
  position: relative;
  z-index: 1;
}

.portrait-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-dark);
  background: #101010;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 90% at 75% 5%, rgba(169, 252, 4, 0.09), transparent 60%),
    linear-gradient(160deg, #181818, #080808);
}

.pf-mark {
  font-size: clamp(120px, 12vw, 200px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.09em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 230, 0.32);
}

.pf-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(243, 239, 230, 0.32);
}

.portrait-media > img,
.about-media > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.7s ease, transform 0.9s var(--ease);
}

.portrait:hover .portrait-media > img {
  filter: grayscale(0.15) contrast(1.03);
  transform: scale(1.015);
}

.portrait-media > img.hero-cover,
.portrait:hover .portrait-media > img.hero-cover {
  filter: none;
}

.about-media > img {
  filter: none;
}

.about-media:hover > img {
  filter: none;
  transform: scale(1.015);
}

.portrait-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--noise);
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.portrait-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.portrait-media:has(> img.hero-cover)::after {
  background: none;
}

.portrait-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 7px;
  border: 1px solid rgba(243, 239, 230, 0.25);
  background: rgba(10, 10, 10, 0.35);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--ivory);
  backdrop-filter: blur(6px);
}

.portrait-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.portrait-play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.portrait-play:hover {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 0 0 8px rgba(169, 252, 4, 0.1);
}

.portrait figcaption,
.about-portrait figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--gray);
}

.hero-side {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-side > div > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.hero-side p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(243, 239, 230, 0.78);
}

.hero-side p i {
  font-style: normal;
  font-size: 7px;
  color: var(--gray);
}

.archive-meter {
  height: 1px;
  margin-top: 8px;
  background: rgba(243, 239, 230, 0.16);
  overflow: hidden;
}

.archive-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 1.2s var(--ease-out);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line-dark);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.hero-stats > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero-stats b {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gray);
}

.hero-status .dot {
  width: 4px;
  height: 4px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--gray);
  white-space: nowrap;
}

.scroll-cue i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transform: rotate(90deg);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.scroll-cue svg {
  width: 12px;
  height: 12px;
}

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

.scroll-cue:hover i {
  border-color: var(--lime);
}

/* ============================================================
   Ticker
   ============================================================ */

.ticker {
  position: relative;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--ivory);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.ticker--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-paper);
}

.ticker--dark {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--line-dark);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 52s linear infinite;
  will-change: transform;
}

.ticker:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track > span {
  display: inline-block;
  padding: 0 4px;
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.marquee-track > .outline {
  color: transparent;
}

.ticker--dark .marquee-track > .outline {
  -webkit-text-stroke: 1px rgba(243, 239, 230, 0.55);
}

.ticker--paper .marquee-track > .outline {
  -webkit-text-stroke: 1px rgba(10, 10, 10, 0.55);
}

.marquee-track > i {
  font-style: normal;
  font-size: clamp(10px, 1vw, 14px);
  color: var(--lime);
  margin: 0 10px;
  transform: translateY(-2px);
}

.ticker--paper .marquee-track > i {
  color: var(--olive);
}

/* ============================================================
   Section heads
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 54px;
}

.sec-left {
  min-width: 0;
}

.sec-id {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.sec-id span:first-child {
  color: var(--accent);
}

.sec-title {
  margin-top: 14px;
  font-size: clamp(48px, 6vw, 94px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--text);
}

.sec-title em {
  display: inline-block;
  margin-left: 16px;
  font-family: var(--font-serif);
  font-size: 0.22em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  vertical-align: baseline;
}

.sec-title--outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 230, 0.62);
  font-size: clamp(74px, 13.5vw, 200px);
  line-height: 0.78;
  letter-spacing: -0.07em;
}

.sec-sub {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sec-desc {
  max-width: 340px;
  justify-self: end;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--muted);
}

.rail-controls {
  display: flex;
  gap: 6px;
  align-self: end;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.round-btn svg {
  width: 14px;
  height: 14px;
}

.round-btn:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  transform: translateY(-1px);
}

.round-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.sec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.sec-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  transition: color 0.25s ease;
}

.sec-foot a svg {
  width: 12px;
  height: 12px;
}

.sec-foot a:hover {
  color: var(--accent);
}

/* ============================================================
   Work media (shared)
   ============================================================ */

.work-media {
  --accent: #444;
  --accent-deep: #111;
  --cover-ink: rgba(255, 255, 255, 0.22);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: #111;
}

.work-cover {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 110% at 82% 6%, rgba(255, 255, 255, 0.24), transparent 56%),
    radial-gradient(80% 90% at 10% 100%, rgba(0, 0, 0, 0.3), transparent 60%),
    linear-gradient(140deg, var(--accent), var(--accent-deep));
  filter: grayscale(1) contrast(1.04);
  transition: transform 0.8s var(--ease), filter 0.6s ease;
}

.work-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.055) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: soft-light;
}

.cover-icon {
  position: absolute;
  top: 50%;
  right: 11%;
  width: 27%;
  height: auto;
  aspect-ratio: 1;
  transform: translateY(-50%);
  color: var(--cover-ink);
  overflow: visible;
}

.cover-word {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.055em;
  color: var(--cover-ink);
  white-space: nowrap;
  text-transform: uppercase;
}

.work-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.04);
  transition: opacity 0.55s ease, transform 0.8s var(--ease), filter 0.6s ease;
}

.work-poster.is-loaded {
  opacity: 1;
}

.hover-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1);
  transition: opacity 0.4s ease, filter 0.6s ease;
}

.media-has-hover .hover-video {
  opacity: 1;
}

.work-card:hover .hover-video,
.rail-card:hover .hover-video,
.media-has-hover .hover-video {
  filter: grayscale(0);
}

.work-cat,
.work-size,
.work-demo,
.work-shine {
  display: none;
}

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.work-play svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}

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

.rail-card:hover .work-cover,
.work-card:hover .work-cover {
  transform: scale(1.04);
  filter: grayscale(0) contrast(1.02);
}

.rail-card:hover .work-poster,
.work-card:hover .work-poster {
  filter: grayscale(0) contrast(1.02);
  transform: scale(1.025);
}

.card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ============================================================
   Featured rail
   ============================================================ */

.featured {
  padding-top: 100px;
}

.rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

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

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.rail.is-dragging * {
  pointer-events: none;
}

.rail-card {
  position: relative;
  flex: 0 0 clamp(250px, 27vw, 360px);
  scroll-snap-align: start;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  transition: transform 0.4s var(--ease);
  animation: card-in 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.rail-card:hover {
  transform: translateY(-4px);
}

.rail-card .work-media {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-paper-soft);
}

.rail-card-body {
  padding-top: 11px;
  margin-top: 10px;
  border-top: 1px solid var(--line-paper);
}

.rail-card-body .card-index {
  color: var(--gray-dark);
}

.rail-card-body h3 {
  margin-top: 6px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-card:hover .rail-card-body h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rail-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--gray-dark);
}

.rail-meta i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--gray-dark);
}

.rail-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--ink);
}

.rail-arrow svg {
  width: 11px;
  height: 11px;
}

/* ============================================================
   Filmstrip
   ============================================================ */

.filmstrip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 17px 0 22px;
  margin-bottom: 42px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.filmstrip::-webkit-scrollbar {
  display: none;
}

.film-frame {
  flex: 0 0 clamp(160px, 17vw, 225px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  scroll-snap-align: start;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  opacity: 0.72;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
  animation: card-in 0.5s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.film-frame:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.film-media {
  display: block;
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line-dark-soft);
  background: var(--ink-2);
  isolation: isolate;
}

.film-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  background:
    radial-gradient(120% 110% at 82% 6%, rgba(255, 255, 255, 0.2), transparent 56%),
    linear-gradient(140deg, var(--a, #222), var(--b, #0a0a0a));
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.film-frame:hover .film-cover {
  filter: grayscale(0);
}

.film-cover span {
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-cover svg {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
}

.film-media .work-poster {
  filter: grayscale(1);
}

.film-frame:hover .film-media .work-poster {
  filter: grayscale(0);
}

.film-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.film-play svg {
  width: 10px;
  height: 10px;
  margin-left: 1px;
}

.film-frame:hover .film-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.film-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: var(--gray);
  min-width: 0;
}

.film-index {
  color: var(--lime);
  flex: 0 0 auto;
}

.film-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Archive
   ============================================================ */

.archive {
  padding-top: 108px;
}

.archive-body {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 60px;
  align-items: start;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 20px;
  padding-top: 4px;
}

.archive-stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ivory);
}

.archive-stat b i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-left: 3px;
}

.archive-stat > span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.archive-note {
  grid-column: 1 / -1;
  max-width: 300px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  font-size: 10.5px;
  line-height: 1.85;
  color: var(--gray);
}

.archive-index {
  border-top: 1px solid var(--line-dark);
}

.archive-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 72px 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-dark-soft);
  background: none;
  text-align: left;
  color: var(--ivory);
  transition: padding-left 0.3s var(--ease), color 0.25s ease;
}

.archive-row:hover {
  padding-left: 8px;
  color: var(--lime);
}

.ar-num {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.ar-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
}

.ar-name em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ar-count {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--gray);
  text-align: right;
}

.ar-arrow {
  display: grid;
  place-items: center;
  color: var(--gray);
}

.ar-arrow svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s var(--ease), color 0.25s ease;
}

.archive-row:hover .ar-arrow svg {
  transform: translate(2px, -2px);
  color: var(--lime);
}

.archive-row.is-active {
  color: var(--lime);
}

.archive-row.is-active .ar-num,
.archive-row.is-active .ar-count {
  color: var(--lime);
}

.archive-row.is-active .ar-name::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  flex: 0 0 auto;
}

/* ============================================================
   Library
   ============================================================ */

.works {
  padding-top: 110px;
}

.library-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.library-side {
  position: sticky;
  top: 106px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-block {
  border-top: 1px solid var(--line-paper);
  padding-top: 12px;
}

.side-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--gray-dark);
}

.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-tile {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-paper-soft);
  border-radius: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  transition: padding-left 0.25s var(--ease), color 0.25s ease;
  animation: card-in 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
}

.cat-tile:hover {
  padding-left: 6px;
  color: var(--ink);
}

.ct-icon {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 0;
  background: none;
  color: var(--gray-dark);
}

.ct-icon svg {
  width: 13px;
  height: 13px;
}

.ct-name {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-en {
  display: none;
}

.ct-count {
  position: static;
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray-dark);
  opacity: 1;
}

.cat-tile.is-active {
  color: var(--ink);
  font-weight: 600;
  padding-left: 6px;
}

.cat-tile.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--olive);
  transform: translateY(-50%);
}

.cat-tile.is-active .ct-icon {
  color: var(--olive);
}

.cat-tile.is-active .ct-count {
  color: var(--ink);
}

.side-block--search {
  border-top: 1px solid var(--line-paper);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: auto;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line-paper);
  border-radius: 0;
  background: none;
  transition: border-color 0.25s ease;
}

.search-box:focus-within {
  border-bottom-color: var(--ink);
  box-shadow: none;
}

.search-box > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--gray-dark);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--gray-dark);
}

.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-box kbd {
  display: none;
}

.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--gray-dark);
  white-space: nowrap;
}

.dot-sep {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--gray-dark);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: auto;
  border: 1px solid var(--line-paper);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.icon-btn svg {
  width: 12px;
  height: 12px;
}

.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

.icon-btn.spinning svg {
  animation: spin 0.9s linear infinite;
}

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0 10px 10px;
  border-left: 1px solid var(--lime-deep);
  background: none;
  color: var(--gray-dark);
  font-size: 9px;
  line-height: 1.6;
}

.demo-banner .db-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--gray-dark);
}

.demo-banner strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.demo-banner span {
  display: block;
}

.demo-banner code {
  padding: 0 3px;
  background: rgba(10, 10, 10, 0.05);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: inherit;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.demo-banner .link-btn {
  margin-top: 5px;
  color: var(--ink);
}

.link-btn:hover {
  color: var(--olive);
}

.library-main {
  min-width: 0;
}

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

.work-card {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: left;
  box-shadow: none;
  transition: transform 0.4s var(--ease);
  animation: card-in 0.55s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card .work-media {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-paper-soft);
}

.work-body {
  padding: 10px 0 0;
  margin-top: 9px;
  border-top: 1px solid var(--line-paper-soft);
}

.work-body .card-index {
  color: var(--gray-dark);
  margin-bottom: 3px;
}

.work-body h3 {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: text-decoration 0.2s ease;
}

.work-card:hover .work-body h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-desc {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.55;
  color: var(--gray-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--gray-dark);
}

.work-meta .wm-cat {
  color: var(--ink);
  font-weight: 500;
}

.wm-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--gray-dark);
}

.work-open {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  margin-left: auto;
  background: none;
  color: var(--gray-dark);
  transition: color 0.25s ease, transform 0.3s var(--ease);
}

.work-open svg {
  width: 11px;
  height: 11px;
}

.work-card:hover .work-open {
  color: var(--olive);
  transform: translate(2px, -2px);
  background: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-paper-soft);
}

.load-more {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--ink);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.load-more span:last-child {
  color: var(--gray-dark);
}

.load-more:hover {
  color: var(--olive);
  border-color: var(--olive);
}

.empty-state {
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 46px 0;
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
  background: none;
  border-radius: 0;
  text-align: left;
}

.empty-index {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--gray-dark);
}

.empty-state h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.empty-state p {
  max-width: 430px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray-dark);
}

.empty-state .link-btn {
  margin-top: 8px;
  justify-self: start;
  color: var(--ink);
}

/* ============================================================
   About
   ============================================================ */

.about {
  padding-top: 118px;
}

.about-head {
  margin-bottom: 58px;
}

.about-title {
  margin-top: 16px;
  font-size: clamp(30px, 4.9vw, 80px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ivory);
}

.about-title em {
  display: block;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(243, 239, 230, 0.84);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr 0.92fr;
  gap: 38px;
  align-items: start;
  padding-top: 38px;
  border-top: 1px solid var(--line-dark);
}

.about-portrait {
  position: relative;
}

.about-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: #111;
  isolation: isolate;
}

.about-media .portrait-fallback .pf-mark {
  font-size: clamp(100px, 9vw, 160px);
}

.about-copy {
  padding-top: 4px;
}

.about-bio p {
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 2;
  color: var(--gray);
}

.about-bio p:first-child {
  color: rgba(243, 239, 230, 0.9);
}

.skills {
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid var(--line-dark);
}

.skills-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  margin-top: 9px;
}

.skill-chips span {
  display: inline-block;
  padding: 2px 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  color: rgba(243, 239, 230, 0.72);
}

.skill-chips span:not(:last-child)::after {
  content: "/";
  display: inline-block;
  margin: 0 7px;
  color: rgba(243, 239, 230, 0.25);
}

.about-actions {
  margin-top: 28px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 26px;
  border-left: 1px solid var(--line-dark);
}

.capacity-panel {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.cp-head b {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.meter {
  height: 1px;
  margin-top: 12px;
  background: rgba(243, 239, 230, 0.17);
  overflow: hidden;
}

.meter > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--lime);
  transition: width 1.2s var(--ease-out);
}

.cp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.cp-stats b {
  display: block;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ivory);
}

.cp-stats span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.cp-note {
  margin-top: 13px;
  font-size: 8.5px;
  line-height: 1.7;
  color: var(--gray);
}

.process-panel {
  padding-top: 15px;
  border-top: 1px solid var(--line-dark);
  background: none;
  border-radius: 0;
  box-shadow: none;
  color: var(--ivory);
}

.pp-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--gray);
}

.pp-title span {
  color: var(--gray);
}

.process-list {
  margin-top: 8px;
}

.process-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line-dark-soft);
}

.process-list li:first-child {
  border-top: 0;
}

.process-list .pl-num {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--lime);
  padding-top: 3px;
}

.process-list b {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(243, 239, 230, 0.9);
}

.process-list div > span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: var(--gray);
}

/* ============================================================
   Contact / footer
   ============================================================ */

.contact {
  padding-top: 118px;
  padding-bottom: 66px;
  border-top: 1px solid var(--line-dark);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 70px;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: var(--ivory);
}

.contact-title {
  margin-top: 22px;
  font-size: clamp(46px, 7.2vw, 112px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: var(--ivory);
}

.contact-title em {
  display: block;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  color: rgba(243, 239, 230, 0.84);
}

.contact-desc {
  max-width: 430px;
  margin-top: 24px;
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--gray);
}

.contact-lines {
  display: grid;
  max-width: 520px;
  margin-top: 38px;
  border-top: 1px solid var(--line-dark);
}

.contact-lines > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark-soft);
}

.contact-lines > div > span {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--gray);
}

.contact-lines b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(243, 239, 230, 0.85);
  text-align: right;
}

.contact-lines .dot {
  width: 4px;
  height: 4px;
}

.qr-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 100%;
  max-width: 300px;
  justify-self: end;
  padding: 13px;
  border: 1px solid rgba(243, 239, 230, 0.5);
  border-radius: 0;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: none;
  transition: transform 0.4s var(--ease);
}

.qr-card:hover {
  transform: translateY(-4px);
}

.qr-img-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 7px;
  background: #f7f5ef;
  overflow: hidden;
}

.qr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-text {
  display: block;
  text-align: center;
  line-height: 1.35;
}

.qr-text strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.qr-text span {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  color: var(--gray-dark);
}

.qr-zoom {
  display: block;
  width: 100%;
  padding-top: 8px;
  border-top: 1px solid var(--line-paper-soft);
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--gray-dark);
  text-align: center;
}

.contact-ticker {
  margin-top: 70px;
  border-left: 0;
  border-right: 0;
}

.contact-ticker .marquee-track > span {
  font-size: clamp(28px, 4.2vw, 58px);
}

.footer {
  background: var(--ink);
}

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 28px 0 22px;
  color: var(--ivory);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.footer-signature {
  font-family: var(--font-script);
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ivory);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 38px;
}

.footer-cols h4 {
  margin: 0 0 9px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--gray);
}

.footer-cols a {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  color: rgba(243, 239, 230, 0.6);
  transition: color 0.25s ease;
}

.footer-cols a:hover {
  color: var(--lime);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--gray);
  white-space: nowrap;
}

.footer-meta b {
  font-weight: 400;
  color: var(--ivory);
}

.to-top {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--ivory);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.to-top svg {
  width: 13px;
  height: 13px;
}

.to-top:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* ============================================================
   Mobile menu
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 21px 20px 28px;
  background: var(--ink);
  color: var(--ivory);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.mm-links {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.mm-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-dark-soft);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ivory);
  transition: color 0.25s ease, padding-left 0.3s var(--ease);
}

.mm-links a span {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.mm-links a em {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.14em;
  color: var(--gray);
}

.mm-links a svg {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--gray);
  transition: color 0.25s ease, transform 0.25s var(--ease);
}

.mm-links a:hover {
  color: var(--lime);
  padding-left: 6px;
}

.mm-links a:hover svg {
  color: var(--lime);
  transform: translate(2px, -2px);
}

.mm-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 24px;
}

.mm-foot .nav-status {
  display: inline-flex;
  color: var(--gray);
}

.mm-foot p {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.mm-signature {
  font-family: var(--font-script);
  font-size: 34px;
  line-height: 1;
  color: var(--ivory);
}

/* ============================================================
   Modal base
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.86);
  backdrop-filter: blur(14px) saturate(0.8);
  -webkit-backdrop-filter: blur(14px) saturate(0.8);
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease,
    transform 0.25s var(--ease);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-close:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ink);
  transform: rotate(90deg);
}

/* ============================================================
   Video modal / player
   ============================================================ */

.vm-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  max-height: 94svh;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(243, 239, 230, 0.12);
  background: #060606;
  color: var(--ivory);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.65);
  transform: translateY(14px);
  transition: transform 0.4s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 239, 230, 0.18) transparent;
}

.modal.is-open .vm-shell {
  transform: none;
}

.vm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 13px;
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: 13px;
}

.vm-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vm-cat {
  align-self: flex-start;
  padding: 4px 7px;
  border: 1px solid rgba(169, 252, 4, 0.35);
  background: none;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.vm-head h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.vm-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.vm-demo-badge {
  padding: 4px 7px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.player-shell {
  background: #000;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  outline: none;
  user-select: none;
}

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

.player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 24%, transparent 64%, rgba(0, 0, 0, 0.5));
  transition: opacity 0.3s ease;
}

.player.is-playing.ui-hidden::after {
  opacity: 0;
}

.player-placeholder {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  color: var(--ivory);
  background:
    radial-gradient(80% 100% at 75% 0%, rgba(169, 252, 4, 0.16), transparent 55%),
    linear-gradient(145deg, #161616, #060606);
}

.pp-art {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 4px;
  border: 1px solid var(--line-dark);
  color: var(--lime);
}

.pp-art svg {
  width: 24px;
  height: 24px;
}

.player-placeholder strong {
  font-size: 16px;
  font-weight: 500;
}

.player-placeholder > span {
  max-width: 380px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray);
}

.player-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transform: translate(-50%, -50%);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.player-center svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.player-center:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player.is-playing .player-center {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.player-placeholder-mode .player-center,
.player-placeholder-mode .player-controls {
  display: none;
}

.player.player-placeholder-mode::after {
  display: none;
}

.player-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 7;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--lime);
  animation: spin 0.8s linear infinite;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding: 34px 14px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.player.is-playing.ui-hidden .player-controls {
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
}

.player.is-playing.ui-hidden {
  cursor: none;
}

.p-progress {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.p-progress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
}

.p-buffer,
.p-played {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}

.p-buffer {
  width: 0;
  background: rgba(255, 255, 255, 0.36);
}

.p-played {
  width: 0;
  background: var(--lime);
}

.p-knob {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateY(-50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.p-progress:hover .p-knob,
.p-progress:focus-visible .p-knob {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  color: var(--ivory);
}

.p-btn {
  display: grid;
  place-items: center;
  height: 32px;
  min-width: 32px;
  padding: 0 4px;
  border-radius: 0;
  color: rgba(243, 239, 230, 0.86);
  transition: background 0.2s ease, color 0.2s ease;
}

.p-btn svg {
  width: 17px;
  height: 17px;
}

.p-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ivory);
}

#btnPlay .ico-pause,
#btnMute .ico-muted,
#btnFullscreen .ico-fs-exit {
  display: none;
}

.player.is-playing #btnPlay .ico-play {
  display: none;
}

.player.is-playing #btnPlay .ico-pause {
  display: block;
}

.player.is-muted #btnMute .ico-vol {
  display: none;
}

.player.is-muted #btnMute .ico-muted {
  display: block;
}

.player.is-fullscreen #btnFullscreen .ico-fs,
.player:fullscreen #btnFullscreen .ico-fs,
.player:-webkit-full-screen #btnFullscreen .ico-fs {
  display: none;
}

.player.is-fullscreen #btnFullscreen .ico-fs-exit,
.player:fullscreen #btnFullscreen .ico-fs-exit,
.player:-webkit-full-screen #btnFullscreen .ico-fs-exit {
  display: block;
}

.p-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(243, 239, 230, 0.75);
  white-space: nowrap;
}

.p-time i {
  font-style: normal;
  opacity: 0.4;
}

.p-volume {
  display: flex;
  align-items: center;
  gap: 2px;
}

#volumeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 68px;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    var(--lime) 0%,
    var(--lime) var(--vol, 100%),
    rgba(255, 255, 255, 0.22) var(--vol, 100%)
  );
  outline: none;
  cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ivory);
}

#volumeSlider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
}

.p-spacer {
  flex: 1;
}

.p-speed-wrap {
  position: relative;
}

.p-speed {
  font-family: var(--font-mono);
  font-size: 9px;
  min-width: 40px;
}

.speed-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 10;
  display: grid;
  gap: 1px;
  min-width: 86px;
  padding: 5px;
  border: 1px solid var(--line-dark);
  background: #0e0e0e;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

.speed-menu button {
  padding: 6px 9px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(243, 239, 230, 0.68);
  transition: background 0.18s ease, color 0.18s ease;
}

.speed-menu button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ivory);
}

.speed-menu button.active {
  color: var(--lime);
}

.player:fullscreen,
.player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

.player:fullscreen .player-controls,
.player:-webkit-full-screen .player-controls {
  padding: 60px 30px 20px;
}

.vm-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 2px 2px;
  margin-top: 12px;
  border-top: 1px solid var(--line-dark);
}

.vm-about {
  min-width: 0;
}

.vm-about p {
  font-size: 11px;
  line-height: 1.75;
  color: var(--gray);
}

.vm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.vm-tags span {
  padding: 3px 6px;
  border: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--gray);
}

.vm-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vm-nav .round-btn {
  width: 34px;
  height: 34px;
  border-color: var(--line-dark);
  color: var(--ivory);
}

.vm-nav .round-btn:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.vm-nav > span {
  min-width: 42px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--gray);
}

/* ============================================================
   QR modal
   ============================================================ */

.qr-modal-card {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  padding: 28px 28px 24px;
  background: var(--ivory);
  color: var(--ink);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease-out);
}

.modal.is-open .qr-modal-card {
  transform: none;
}

.qr-modal-card .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-color: var(--line-paper);
  background: none;
  color: var(--ink);
}

.qr-modal-card .modal-close svg {
  width: 14px;
  height: 14px;
}

.qr-modal-card .modal-close:hover {
  background: var(--ink);
  color: var(--lime);
}

.qr-modal-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--gray-dark);
}

.qr-modal-card h2 {
  margin: 12px 0 16px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.qr-modal-img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 9px;
  background: #f7f5ef;
}

.qr-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-modal-card p {
  margin: 15px 0 16px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink);
}

.qr-modal-card p span {
  font-size: 9px;
  color: var(--gray-dark);
}

/* ============================================================
   Reveal / keyframes
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes preload {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(420%); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   Simplified pass — fewer labels, bigger images
   ============================================================ */

.hero-main {
  align-items: center;
}

.hero-top {
  justify-content: flex-start;
}

.hero-name {
  margin-top: 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-role {
  margin-top: 18px;
}

.hero-statement {
  margin-top: 20px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-visual {
  max-width: 560px;
}

.hero-stats {
  gap: 22px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--gray);
}

.hero-stats b {
  font-size: 17px;
}

.hero-stats > span {
  gap: 5px;
}

.section-head--simple {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}

.section-head--simple .sec-title {
  margin-top: 0;
}

.sec-sub {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.works-head .sec-title {
  margin-top: 0;
}

.works-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.works-tools .search-box {
  width: 230px;
  padding: 6px 0;
}

.works-tools #resultCount {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.works-tools .icon-btn {
  margin-left: 0;
}

.works-filter {
  margin-bottom: 20px;
  padding: 9px 0 0;
  border-top: 1px solid var(--line-paper-soft);
}

.cat-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 22px;
  overflow: visible;
  padding: 0;
  border: 0;
}

.cat-tile {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  width: auto;
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--ink);
  white-space: nowrap;
  animation: none;
}

.cat-tile:hover {
  padding-left: 0;
  color: var(--ink);
}

.cat-tile.is-active {
  padding-left: 0;
  color: var(--ink);
  font-weight: 600;
}

.cat-tile.is-active::before {
  display: none;
}

.cat-tile.is-active .ct-name::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--olive);
  vertical-align: middle;
}

.ct-name {
  font-size: 12px;
  font-weight: inherit;
}

.ct-count {
  font-family: var(--font-mono);
  font-size: 7.5px;
  color: var(--gray-dark);
}

.ct-icon,
.ct-en {
  display: none;
}

.works-grid {
  gap: 42px 22px;
}

.work-card .work-media {
  aspect-ratio: 4 / 5;
}

.work-body {
  padding-top: 9px;
}

.work-body h3 {
  font-size: 14px;
}

.work-meta {
  margin-top: 6px;
}

.meta-demo {
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--olive);
}

.rail-meta .meta-demo {
  color: var(--olive);
}

.demo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 20px;
  padding: 9px 0 9px 12px;
  border-left: 1px solid var(--lime-deep);
  font-size: 9px;
  line-height: 1.6;
}

.demo-banner > span {
  color: var(--gray-dark);
}

.demo-banner > span:first-child {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.demo-banner code {
  padding: 0 3px;
  background: rgba(10, 10, 10, 0.05);
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--ink);
}

.demo-banner .link-btn {
  margin: 0 0 0 auto;
  color: var(--ink);
}

.archive .section-head--simple {
  margin-bottom: 28px;
}

.archive .sec-title--outline {
  font-size: clamp(64px, 11vw, 170px);
}

.archive .sec-sub {
  white-space: normal;
}

.archive-index {
  border-top: 1px solid var(--line-dark);
}

.archive-row {
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 18px;
  padding: 13px 0;
}

.ar-name {
  font-size: 13.5px;
}

.ar-count {
  font-size: 8px;
}

.ar-arrow {
  justify-self: end;
}

.filmstrip {
  margin-bottom: 28px;
}

.film-meta {
  font-size: 7px;
}

.about-title {
  margin: 0 0 48px;
}

.about-grid {
  grid-template-columns: 0.92fr 1.18fr 0.9fr;
  gap: 34px;
}

.about-visual {
  padding-left: 22px;
}

.about-visual .process-panel {
  border-top: 0;
  padding-top: 0;
}

.about-visual .pp-title {
  color: var(--ivory);
}

.about-media {
  aspect-ratio: 4 / 5;
}

.about-copy .skills {
  margin-top: 22px;
}

.about-actions {
  margin-top: 22px;
}

.about-bio p {
  font-size: 12px;
}

.contact-title {
  margin-top: 0;
}

.contact-desc {
  margin-top: 20px;
}

.contact-meta-line {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 520px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.contact-meta-line .dot {
  width: 4px;
  height: 4px;
}

.contact-meta-line span:last-child {
  margin-left: auto;
}

.contact-panel {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 58px;
}

.qr-card {
  max-width: 280px;
  padding: 12px;
}

.qr-zoom {
  display: none;
}

.contact-ticker {
  margin-top: 58px;
}

.footer-inner {
  grid-template-columns: 1.1fr auto auto;
  align-items: center;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-signature {
  font-family: var(--font-script);
  font-size: 29px;
  line-height: 1;
  color: var(--ivory);
}

.footer-brand > span:last-child {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--gray);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 9px;
  color: rgba(243, 239, 230, 0.62);
}

.footer-links a {
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-meta {
  justify-self: end;
  font-size: 7px;
  gap: 18px;
}

/* ============================================================
   Work groups — AI / other
   ============================================================ */

.work-group {
  position: relative;
}

.work-group--ai {
  --text: var(--ivory);
  --muted: var(--gray);
  --line: var(--line-dark);
  --accent: var(--lime);
  margin-top: 26px;
  padding: 48px 0 58px;
  background: var(--ink);
  color: var(--ivory);
}

.work-group--ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.work-group--ai > .container {
  position: relative;
  z-index: 1;
}

.group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
}

.group-title {
  min-width: 0;
}

.group-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.work-group--ai .group-kicker {
  color: var(--lime);
}

.group-title h3 {
  margin-top: 10px;
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.07em;
  color: var(--text);
}

.work-group--other .group-title h3 {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.group-title p {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
}

.group-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.group-count b {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.work-group--ai .cat-grid,
.work-group--other .cat-grid {
  margin-bottom: 24px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.work-group--ai .cat-tile {
  color: rgba(243, 239, 230, 0.6);
}

.work-group--ai .cat-tile:hover,
.work-group--ai .cat-tile.is-active {
  color: var(--ivory);
}

.work-group--ai .cat-tile.is-active .ct-name::before {
  background: var(--lime);
}

.work-group--ai .ct-count {
  color: var(--gray);
}

.work-group--ai .work-card .work-media {
  border-color: rgba(243, 239, 230, 0.14);
}

.work-group--ai .work-body {
  border-top-color: rgba(243, 239, 230, 0.1);
}

.work-group--ai .work-body h3 {
  color: var(--ivory);
}

.work-group--ai .work-meta {
  color: var(--gray);
}

.work-group--ai .work-meta .wm-cat {
  color: rgba(243, 239, 230, 0.8);
}

.work-group--ai .work-open {
  color: var(--gray);
}

.work-group--ai .work-card:hover .work-open {
  color: var(--lime);
}

.work-group--ai .meta-demo {
  color: var(--lime);
}

.work-group--other {
  padding-top: 58px;
  padding-bottom: 8px;
}

.group-empty {
  margin-top: 4px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1180px) {
  .nav-links {
    gap: 16px;
  }

  .hero-main {
    gap: 36px;
  }

  .hero-visual {
    max-width: 480px;
  }

  .hero-name {
    font-size: clamp(78px, 12vw, 150px);
  }

  .library-layout {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 40px;
  }

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

  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .about-visual {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-left: 0;
    border-left: 0;
    padding-top: 26px;
    border-top: 1px solid var(--line-dark);
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr) 300px auto;
    gap: 28px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .menu-btn {
    display: grid;
  }

  .nav-status {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 34px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    margin-inline: auto;
    max-width: 560px;
    width: 100%;
  }

  .hero-year {
    right: 0;
    bottom: 90px;
  }

  .hero-bottom {
    margin-top: 8px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .rail-controls {
    display: none;
  }

  .sec-desc {
    justify-self: end;
  }

  .archive-body {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .archive-note {
    max-width: 460px;
  }

  .library-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .library-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
    align-items: start;
  }

  .side-block--search {
    border-top: 1px solid var(--line-paper);
  }

  .demo-banner {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-cols {
    justify-self: end;
  }

  .footer-meta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .nav-inner {
    width: calc(100% - 32px);
  }

  .nav-contact {
    display: none;
  }

  .section {
    padding: 84px 0;
    scroll-margin-top: 72px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .hero-top {
    flex-direction: column;
    gap: 14px;
  }

  .hero-strip {
    width: 100%;
    max-width: none;
    height: 56px;
  }

  .strip-item {
    flex-basis: calc((100% - 21px) / 4);
  }

  .hero-top-meta {
    gap: 14px;
    flex-wrap: wrap;
    font-size: 6.5px;
  }

  .hero-name {
    font-size: clamp(66px, 15vw, 120px);
    gap: 10px;
  }

  .hero-name em {
    font-size: clamp(18px, 3.4vw, 26px);
  }

  .hero-role {
    margin-top: 16px;
  }

  .hero-statement {
    margin-top: 18px;
    font-size: 12.5px;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-side {
    gap: 10px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stats b {
    font-size: 16px;
  }

  .scroll-cue {
    align-self: flex-end;
  }

  .ticker {
    padding: 10px 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 34px;
  }

  .sec-desc {
    justify-self: start;
    max-width: 460px;
    font-size: 11px;
  }

  .sec-title {
    font-size: clamp(42px, 9vw, 64px);
  }

  .sec-title--outline {
    font-size: clamp(64px, 17vw, 120px);
  }

  .sec-id {
    font-size: 6.5px;
  }

  .featured {
    padding-top: 76px;
  }

  .rail-card {
    flex-basis: min(78vw, 330px);
  }

  .filmstrip {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .film-frame {
    flex-basis: 175px;
  }

  .archive-body {
    gap: 30px;
  }

  .archive-stats {
    gap: 18px 12px;
  }

  .archive-stat b {
    font-size: 34px;
  }

  .library-side {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .cat-grid {
    display: flex;
    flex-direction: row;
    gap: 0 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
    border-top: 1px solid var(--line-paper-soft);
  }

  .cat-grid::-webkit-scrollbar {
    display: none;
  }

  .cat-tile {
    flex: 0 0 auto;
    width: auto;
    grid-template-columns: auto auto;
    gap: 6px;
    padding: 9px 0;
    border-bottom: 0;
    white-space: nowrap;
  }

  .ct-icon {
    display: none;
  }

  .cat-tile.is-active {
    padding-left: 0;
  }

  .cat-tile.is-active::before {
    left: auto;
    right: -1px;
    top: auto;
    bottom: -1px;
    width: 100%;
    height: 1px;
    border-radius: 0;
    transform: none;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .work-card .work-media {
    aspect-ratio: 4 / 5;
  }

  .about-head {
    margin-bottom: 34px;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 26px;
  }

  .about-media {
    aspect-ratio: 4 / 5;
    max-width: 420px;
  }

  .about-visual {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 22px;
  }

  .about-title {
    font-size: clamp(26px, 7.4vw, 40px);
  }

  .contact {
    padding-top: 84px;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .contact-title {
    font-size: clamp(44px, 11vw, 64px);
  }

  .qr-card {
    justify-self: start;
    max-width: 290px;
  }

  .contact-ticker {
    margin-top: 48px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-cols {
    justify-self: start;
    gap: 34px;
  }

  .footer-meta {
    grid-column: auto;
    justify-self: start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .modal {
    padding: 8px;
  }

  .vm-shell {
    max-height: 97svh;
    padding: 10px;
  }

  .vm-head h2 {
    font-size: 16px;
  }

  .vm-cat {
    font-size: 6.5px;
  }

  .p-volume {
    display: none;
  }

  .vm-info {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .vm-nav {
    width: 100%;
    justify-content: space-between;
  }

  .vm-nav > span {
    flex: 1;
  }

  .qr-modal-card {
    padding: 24px 20px 20px;
  }
}

@media (max-width: 520px) {
  .brand-signature {
    font-size: 21px;
  }

  .brand-sub {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 38px);
  }

  .hero-strip {
    height: 50px;
  }

  .strip-item {
    min-width: 0;
  }

  .hero-name {
    font-size: clamp(58px, 17vw, 84px);
    letter-spacing: -0.08em;
  }

  .hero-name em {
    font-size: 16px;
    margin-bottom: 0.42em;
  }

  .hero-actions {
    gap: 20px;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
  }

  .hero-side > div:last-child {
    grid-column: 1 / -1;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-status {
    width: 100%;
  }

  .scroll-cue {
    align-self: flex-start;
  }

  .marquee-track > span {
    font-size: 30px;
  }

  .section {
    padding: 72px 0;
  }

  .sec-title {
    font-size: 40px;
  }

  .sec-title em {
    margin-left: 10px;
    font-size: 0.25em;
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .work-card .work-media {
    aspect-ratio: 4 / 5;
  }

  .film-frame {
    flex-basis: 155px;
  }

  .archive-stat b {
    font-size: 30px;
  }

  .contact-title {
    font-size: 44px;
  }

  .contact-lines > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .contact-lines b {
    text-align: left;
  }

  .qr-card {
    max-width: 100%;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-cols > div:last-child {
    display: none;
  }

  .about-title {
    font-size: clamp(25px, 7.4vw, 32px);
  }

  .cp-stats b {
    font-size: 23px;
  }

  .vm-nav .round-btn {
    width: 32px;
    height: 32px;
  }

  .p-time {
    font-size: 8px;
  }

  .player-controls {
    padding: 28px 10px 6px;
  }

  .vm-info {
    padding-bottom: 6px;
  }
}

@media (hover: none) {
  .work-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.86);
  }

  .film-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .marquee-track {
    animation: none;
  }
}

@media print {
  .site-nav,
  .scroll-progress,
  .cursor-dot,
  .cursor-ring,
  .preloader,
  .ticker,
  .toast,
  .modal,
  .page-transition,
  .edit-trigger,
  .editor {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .section-dark,
  .section-paper,
  body {
    background: #fff !important;
    color: #000 !important;
  }
}

/* ============================================================
   Simplified responsive
   ============================================================ */

@media (max-width: 820px) {
  .section-head--simple {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .works-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .works-tools {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .works-tools .search-box {
    flex: 1 1 180px;
    width: auto;
    max-width: none;
  }

  .cat-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-top: 0;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .cat-grid::-webkit-scrollbar {
    display: none;
  }

  .cat-tile {
    flex: 0 0 auto;
  }

  .about-title {
    margin-bottom: 30px;
    font-size: clamp(25px, 7.4vw, 38px);
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-meta-line span:last-child {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 16px;
  }

  .footer-links {
    order: 2;
  }

  .footer-meta {
    order: 3;
    justify-self: start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stats b {
    font-size: 15px;
  }

  .video-modal .vm-shell {
    padding: 10px;
  }

  .video-modal .player {
    max-height: calc(100svh - 190px);
  }

  .pt-sheet {
    padding: 18px;
  }

  .pt-marquee {
    font-size: 52px;
  }

  .editor-panel {
    width: 100%;
  }

  .edit-trigger {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .edit-trigger span {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero-stats > span {
    font-size: 8px;
  }

  .works-tools .icon-btn {
    margin-left: auto;
  }

  .about-title {
    font-size: clamp(24px, 7.4vw, 32px);
  }

  .pt-marquee {
    font-size: 42px;
  }

  .contact-title {
    font-size: 44px;
  }
}

/* ============================================================
   Full-screen project page
   ============================================================ */

.video-modal {
  padding: 0;
}

.video-modal .modal-backdrop {
  background: #050505;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-modal .vm-shell {
  width: 100%;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 20px 32px 24px;
  border: 0;
  background: #050505;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.video-modal .vm-head {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 12px;
}

.video-modal .player-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  flex: 0 0 auto;
}

.video-modal .player {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 230px);
}

.video-modal .player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-modal .vm-info {
  width: 100%;
  max-width: 1280px;
  margin: 14px auto 0;
  flex: 0 0 auto;
}

/* ============================================================
   Page transition (reference-inspired)
   ============================================================ */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.page-transition.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.pt-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 34px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 0.55s var(--ease-out);
}

.page-transition.is-open .pt-sheet {
  transform: translateY(0);
}

.page-transition.is-exit .pt-sheet {
  transform: translateY(-100%);
}

.pt-top,
.pt-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--gray-dark);
}

.pt-marquee {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(50px, 7vw, 110px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  animation: pt-marquee 9s linear infinite;
}

.pt-marquee span {
  padding: 0 4px;
}

.pt-marquee i {
  font-style: normal;
  font-size: 0.2em;
  color: var(--olive);
  margin: 0 18px;
  transform: translateY(-8px);
}

.pt-streak {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -20%;
  z-index: 1;
  width: 36%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(169, 252, 4, 0.88),
    rgba(255, 255, 255, 0.18),
    transparent
  );
  filter: blur(18px);
  opacity: 0;
  transform: translateX(-40%);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.page-transition.is-visible .pt-streak {
  animation: pt-streak 1.15s var(--ease) forwards;
}

@keyframes pt-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pt-streak {
  0% { transform: translateX(-40%); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: translateX(420%); opacity: 0; }
}

/* ============================================================
   Local editor
   ============================================================ */

.edit-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.edit-trigger svg {
  width: 14px;
  height: 14px;
}

.edit-trigger:hover {
  background: var(--lime);
  transform: translateY(-2px);
}

.editor {
  position: fixed;
  inset: 0;
  z-index: 1100;
}

.editor[hidden] {
  display: none !important;
}

.editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.editor-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(500px, 100%);
  background: var(--ivory);
  color: var(--ink);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
}

.editor.is-open .editor-panel {
  transform: none;
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line-paper);
}

.editor-kicker {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--gray-dark);
}

.editor-head h2 {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.editor-close {
  border-color: var(--line-paper);
  background: none;
  color: var(--ink);
}

.editor-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-paper);
  flex: 0 0 auto;
}

.editor-tabs button {
  padding: 6px 10px;
  border-bottom: 1px solid transparent;
  font-size: 10px;
  color: var(--gray-dark);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.editor-tabs button.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 24px;
}

.editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line-paper);
  flex: 0 0 auto;
}

#editorStatus {
  font-size: 8px;
  line-height: 1.5;
  color: var(--gray-dark);
}

.editor-save {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background 0.2s ease, color 0.2s ease;
}

.editor-save:hover {
  background: var(--lime);
  color: var(--ink);
}

.ed-section-title {
  margin: 6px 0 12px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.ed-section-title:not(:first-child) {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line-paper);
}

.editor-save:disabled,
.ed-cat-actions button:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.ed-group {
  margin-bottom: 16px;
}

.ed-label {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--gray-dark);
}

.ed-input,
.ed-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-paper);
  background: none;
  padding: 7px 0;
  font-size: 12px;
  color: var(--ink);
  outline: none;
}

.ed-input:focus,
.ed-textarea:focus {
  border-bottom-color: var(--ink);
}

.ed-textarea {
  min-height: 84px;
  padding: 8px;
  border: 1px solid var(--line-paper);
  resize: vertical;
  line-height: 1.7;
}

.ed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ed-hint {
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.6;
  color: var(--gray-dark);
}

.ed-work {
  padding: 13px 0;
  border-top: 1px solid var(--line-paper);
}

.ed-work-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.ed-work-title {
  font-size: 11px;
  font-weight: 500;
}

.ed-work-path {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--gray-dark);
}

.ed-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--gray-dark);
}

.ed-cat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-paper-soft);
}

.ed-cat-row input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  padding: 5px 0;
  font-size: 11px;
  color: var(--ink);
  outline: none;
}

.ed-cat-row input:focus {
  border-bottom-color: var(--line-paper);
}

.ed-cat-actions {
  display: flex;
  gap: 4px;
}

.ed-cat-actions button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-paper);
  font-size: 10px;
  color: var(--ink);
}

.ed-cat-actions button:hover {
  background: var(--ink);
  color: var(--ivory);
}

.ed-sort-group-head,
.ed-sort-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-paper);
}

.ed-sort-group-head:first-of-type {
  margin-top: 8px;
}

.ed-sort-group-name,
.ed-sort-block-title {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ed-sort-group-count,
.ed-sort-block-count {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--gray-dark);
}

.ed-sort-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-paper-soft);
}

.ed-sort-index {
  font-family: var(--font-mono);
  font-size: 7px;
  color: var(--gray-dark);
}

.ed-sort-main {
  min-width: 0;
}

.ed-sort-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.35;
}

.ed-sort-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  color: var(--gray-dark);
}

.ed-sort-badge {
  flex: 0 0 auto;
  padding: 2px 4px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.ed-sort-actions {
  display: flex;
  gap: 4px;
}

.ed-sort-actions button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-paper);
  font-size: 10px;
  color: var(--ink);
}

.ed-sort-actions button:hover {
  background: var(--ink);
  color: var(--ivory);
}

.ed-sort-actions button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.ed-sort-block {
  margin-top: 6px;
}

.ed-image-block {
  padding: 14px 0;
  border-top: 1px solid var(--line-paper);
}

.ed-image-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 8px;
  overflow: hidden;
  background: #ded9ce;
}

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

.ed-image-preview.qr {
  max-width: 180px;
  aspect-ratio: 1;
}

.ed-image-preview.hero {
  max-width: 220px;
  aspect-ratio: 4 / 5;
}

.ed-file {
  font-size: 9px;
  color: var(--gray-dark);
}

.toast {
  z-index: 1300;
}

html.pt-lock,
body.pt-lock {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .pt-sheet,
  .editor-panel {
    transition-duration: 0.01ms !important;
  }

  .pt-marquee,
  .pt-streak {
    animation: none !important;
  }
}

@media (max-width: 820px) {
  .work-group--ai {
    margin-top: 18px;
    padding: 34px 0 42px;
  }

  .work-group--other {
    padding-top: 42px;
  }

  .group-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  .group-title h3 {
    font-size: clamp(54px, 16vw, 96px);
  }

  .work-group--other .group-title h3 {
    font-size: clamp(32px, 9vw, 48px);
  }

  .group-title p {
    font-size: 9px;
  }

  .group-count b {
    font-size: 24px;
  }

  .work-group--ai .cat-grid,
  .work-group--other .cat-grid {
    margin-bottom: 18px;
  }
}

.ed-feature-row {
  align-items: start;
}

.ed-feature-select {
  width: 100%;
  max-width: 260px;
  margin-top: 7px;
  padding: 5px 6px;
  border: 1px solid var(--line-paper);
  background: transparent;
  color: var(--ink);
  font-size: 8px;
  line-height: 1.4;
}

.ed-feature-select:focus {
  border-color: var(--ink);
  outline: none;
}

.ed-feature-remove {
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--line-paper);
  font-size: 7px;
  color: var(--gray-dark);
}

.ed-feature-remove:hover {
  background: var(--ink);
  color: var(--ivory);
}

.ed-feature-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.ed-feature-add-row .ed-feature-select {
  flex: 1;
  max-width: none;
  margin-top: 0;
}

.ed-feature-add {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.ed-feature-add:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.ed-sort-actions .ed-feature-remove {
  width: auto;
  min-width: 38px;
  padding: 0 7px;
  white-space: nowrap;
}
