/* =========================================================
   Ye — 导演 / AIGC
   A quiet, white, editorial film catalogue.
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #141413;
  --muted: #6f6b64;
  --line: rgba(20, 20, 19, 0.16);
  --line-soft: rgba(20, 20, 19, 0.08);
  --accent: #d24a2f;
  --paper: #f6f2e9;
  --header-h: 152px;
  --gutter: 10vw;
  --serif: "Songti SC", "STSong", "Songti TC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --latin: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd,
ol,
ul {
  margin: 0;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

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

.skip {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 300;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

.dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* =========================================================
   header
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-top: 8px;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  align-self: center;
  color: #e8e7e3;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "STSong", serif;
  font-size: 130px;
  font-weight: 700;
  line-height: 0.64;
  letter-spacing: -0.12em;
  -webkit-text-stroke: 2px #e8e7e3;
  pointer-events: none;
  user-select: none;
}

.brand-line {
  display: flex;
  align-items: flex-end;
  align-self: center;
  gap: 13px;
  margin-top: -9px;
}

.brand-name {
  font-family: var(--latin);
  font-size: 38px;
  font-style: normal;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.brand-role {
  padding-bottom: 2px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 2.4vw, 40px);
}

.nav a {
  padding: 7px 0;
  color: #999999;
  font-family: var(--latin);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 1px;
  background: var(--ink);
}

body.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

body.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 52px) var(--gutter) 30px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

body.menu-open .site-header {
  border-bottom-color: transparent;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 17px 0 15px;
  border-bottom: 1px solid var(--line);
  color: #999999;
  font-family: var(--latin);
  font-size: clamp(24px, 6.8vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mobile-nav a[aria-current="page"] {
  color: var(--ink);
}

.mobile-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.mobile-foot a {
  color: var(--ink);
  font-family: var(--latin);
  font-size: 13px;
  letter-spacing: 0.02em;
}

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

.mobile-social {
  display: flex;
  gap: 16px;
}

/* =========================================================
   shell
   ========================================================= */

main {
  flex: 1 0 auto;
  padding-top: var(--header-h);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.17em;
}

.section-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.16em;
}

/* =========================================================
   directing — full-bleed work stream
   ========================================================= */

.works {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}

.work {
  position: relative;
  display: block;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background: #111110;
  color: #fff;
}

.work::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 48%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.32) 32%,
    rgba(0, 0, 0, 0.08) 62%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position, center);
}

.js .work img[data-reveal-img] {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.js .work img[data-reveal-img].is-visible {
  opacity: 1;
}

.work-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 120px;
  z-index: 2;
  max-width: calc(100% - (var(--gutter) * 2));
  color: #fff;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.2em;
}

.js .work-caption {
  opacity: 0;
  transition: opacity 1s ease;
}

.js .work.is-caption-visible .work-caption {
  opacity: 1;
}

.page-home .works {
  animation: home-emerge 1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-home .site-header .brand,
.page-home .site-header .nav,
.page-home .site-header .menu-toggle {
  animation: home-header-in 0.8s ease both;
}

@keyframes home-emerge {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-header-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.work:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}

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

.site-footer {
  padding: 23px var(--gutter) 25px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-row {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.footer-brand .name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.footer-brand .role {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.footer-email {
  justify-self: start;
  color: var(--ink);
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.02em;
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.footer-social a {
  color: var(--muted);
}

.footer-city,
.footer-copy {
  white-space: nowrap;
}

.footer-city {
  font-variant-numeric: tabular-nums;
}

.footer-copy {
  text-align: right;
}

/* =========================================================
   film detail — header
   ========================================================= */

.film-head {
  padding: 38px var(--gutter) 0;
  text-align: center;
}

.film-intro {
  max-width: 1000px;
  margin: 0 auto;
}

.film-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 2.25vw, 34px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.film-short {
  max-width: 1000px;
  margin: 38px auto 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

.film-contact {
  margin: 30px auto 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  text-align: center;
}

.film-contact a {
  color: var(--muted);
}

.film-contact a:hover {
  color: var(--accent);
}

.film-credits {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 var(--gutter);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.8;
  letter-spacing: 0.055em;
  text-align: center;
}

/* A quiet, staggered entrance for the project page. */

.page-work .film-title,
.page-work .film-short,
.page-work .film-contact,
.page-work .film-credits,
.page-work .player-wrap {
  animation: detail-emerge 1.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-work .film-title { animation-delay: 0.05s; }
.page-work .film-short { animation-delay: 0.15s; }
.page-work .film-contact { animation-delay: 0.27s; }
.page-work .player-wrap {
  animation-delay: 0.38s;
  animation-duration: 1.35s;
  --scale-from: 0.985;
  --rise: 10px;
}
.page-work .film-credits { animation-delay: 0.7s; }

@keyframes detail-emerge {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 8px)) scale(var(--scale-from, 0.98));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   player
   ========================================================= */

.player-wrap {
  width: min(84vw, 1440px);
  margin: 72px auto 0;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

.player-controls {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0));
  color: #fff;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player:not(.is-playing) .player-controls {
  opacity: 0;
  visibility: hidden;
}

.player:not(.is-playing):hover .player-controls,
.player:not(.is-playing):focus-within .player-controls {
  opacity: 1;
  visibility: visible;
}

.player-poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  color: #fff;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-poster-play svg {
  width: 36px;
  height: 36px;
}

.player-poster-play .play-shape {
  fill: #fff;
  stroke: rgba(0, 0, 0, 0.26);
  stroke-width: 1;
}

.player-poster-play:hover {
  opacity: 0.78;
}

.player.is-playing .player-poster-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.pc-btn:hover {
  color: #fff;
}

.pc-btn svg {
  display: block;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pc-btn .icon-pause,
.player.is-playing .pc-btn .icon-play {
  display: none;
}

.player.is-playing .pc-btn .icon-pause {
  display: block;
}

.pc-btn .icon-volume-off,
.player.is-muted .pc-btn .icon-volume-on {
  display: none;
}

.player.is-muted .pc-btn .icon-volume-off {
  display: block;
}

.pc-play .icon-play {
  fill: currentColor;
  stroke: none;
}

.pc-play .icon-pause {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.pc-seek {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 40px;
  height: 22px;
}

.pc-seek input {
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.pc-seek input::-webkit-slider-runnable-track {
  height: 1px;
  background: transparent;
}

.pc-seek input::-webkit-slider-thumb {
  width: 5px;
  height: 5px;
  margin-top: -2px;
  border: 0;
  border-radius: 0;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}

.pc-seek input::-moz-range-track {
  height: 1px;
  background: transparent;
}

.pc-seek input::-moz-range-thumb {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.pc-time {
  flex: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--latin);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}

.player:fullscreen video {
  object-fit: contain;
}

/* =========================================================
   project dossier
   ========================================================= */

.dossier {
  margin-top: 104px;
  padding: 0 var(--gutter) 86px;
  background: var(--paper);
}

.dossier-inner {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding-top: 60px;
}

.dossier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: 0.14em;
}

.dossier-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dossier-head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
}

.dossier-title {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.dossier-intro {
  max-width: 740px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 14px;
  line-height: 2;
}

.dossier-logline {
  max-width: 820px;
  margin-top: 50px;
  padding: 31px 0 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0.01em;
}

.dossier-wide {
  margin-top: 34px;
}

.dossier-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.dossier-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.09em;
}

.dossier-tools {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  margin-top: 50px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.dossier-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.15em;
}

.tool-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.tool-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.7;
}

.dossier-section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding: 27px 0 28px;
  border-bottom: 1px solid var(--line);
}

.dossier-section:first-of-type {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.dossier-section h2 {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.15em;
}

.dossier-prose {
  max-width: 650px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.95;
}

.dossier-prose p + p {
  margin-top: 12px;
}

.dossier-block {
  margin-top: 52px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.asset-grid figure {
  min-width: 0;
}

.asset-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7e1d5;
}

.asset-grid figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.naming-list {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.naming-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 9.5px;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.naming-row span:first-child {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.swatch {
  min-width: 0;
}

.swatch-color {
  height: 62px;
  background: var(--swatch);
}

.swatch-meta {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--latin);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.swatch-meta span {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  letter-spacing: 0.08em;
}

.spec-list {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.spec-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.7;
}

.spec-row dt {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.dossier-closing {
  max-width: 700px;
  margin-top: 62px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  line-height: 1.7;
}

.dossier-sign {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.11em;
}

/* =========================================================
   next project
   ========================================================= */

.next-project {
  position: relative;
  display: block;
  width: 100%;
  height: 64vh;
  min-height: 380px;
  margin-top: 104px;
  overflow: hidden;
  background: #111110;
  color: #fff;
}

.next-project::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 38%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.46) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.next-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--position, center);
}

.next-caption {
  position: absolute;
  left: var(--gutter);
  bottom: 38px;
  z-index: 2;
}

.next-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.19em;
}

.next-title {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.next-project:hover .next-title {
  color: var(--accent);
}

.next-project:focus-visible {
  outline-color: #fff;
  outline-offset: -5px;
}

/* =========================================================
   editing — a quiet chronological index
   ========================================================= */

.editing-page {
  padding: 43px var(--gutter) 84px;
}

.edit-index {
  margin-top: 0;
}

.edit-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1.25fr) minmax(110px, 0.72fr) minmax(100px, 0.62fr) 46px;
  gap: 24px;
  align-items: baseline;
  padding: 19px 0 20px;
  border-bottom: 1px solid var(--line);
}

.edit-row:first-child {
  border-top: 1px solid var(--line);
}

.edit-year,
.edit-duration {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.edit-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.edit-role,
.edit-kind {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.edit-duration {
  text-align: right;
}

a.edit-row:hover .edit-title {
  color: var(--accent);
}

/* =========================================================
   journal index
   ========================================================= */

.journal-page {
  padding: 43px var(--gutter) 92px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 64px);
  margin-top: 42px;
}

.journal-entry {
  display: block;
  min-width: 0;
}

.journal-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #efede8;
}

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

.js .journal-cover img[data-reveal-img] {
  opacity: 0;
  transition: opacity 0.28s ease;
}

.js .journal-cover img[data-reveal-img].is-visible {
  opacity: 1;
}

.journal-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.journal-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(21px, 1.85vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

.journal-entry:hover .journal-title {
  color: var(--accent);
}

.journal-excerpt {
  max-width: 38ch;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

/* =========================================================
   article
   ========================================================= */

.article-page {
  padding: 43px var(--gutter) 94px;
}

.article {
  width: min(100%, 1000px);
  margin: 0 auto;
}

.article-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.article-meta {
  margin-top: 43px;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.7;
  letter-spacing: 0.12em;
}

.article-title {
  max-width: 900px;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.3vw, 60px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.005em;
}

.article-dek {
  max-width: 600px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.article-cover {
  margin-top: 38px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.09em;
}

.article-body {
  width: min(100%, 680px);
  margin: 54px auto 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18.5px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.004em;
}

.article-body p + p {
  margin-top: 1.15em;
}

.article-body h2 {
  margin: 2.1em 0 0.65em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.article-body blockquote {
  margin: 2.2em 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.8;
}

.article-end {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-top: 68px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.article-end a:hover {
  color: var(--accent);
}

/* =========================================================
   about
   ========================================================= */

.about-page {
  padding: 58px var(--gutter) 94px;
}

.about-lead {
  max-width: 1180px;
}

.about-kicker {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.17em;
}

.about-statement {
  max-width: 13em;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.1vw, 92px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: 0.005em;
}

.about-main {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: start;
  margin-top: 86px;
}

.identity-card {
  aspect-ratio: 3 / 4;
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.identity-top,
.identity-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.13em;
}

.identity-mark {
  font-family: var(--serif);
  font-size: clamp(82px, 8.5vw, 126px);
  font-style: normal;
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.025em;
}

.identity-role {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.11em;
}

.about-copy {
  max-width: 630px;
  padding-top: 3px;
}

.about-copy p {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: 20px;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.about-facts span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.about-facts p {
  margin-top: 4px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.7;
}

.about-method {
  margin-top: 100px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin-top: 28px;
}

.method-item {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.method-no {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: 0.13em;
}

.method-title {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.5;
}

.method-text {
  max-width: 27ch;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.about-timeline {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  margin-top: 83px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.timeline {
  max-width: 760px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
  line-height: 1.8;
}

.timeline-row:first-child {
  padding-top: 0;
}

.timeline-year {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 1280px) {
  :root {
    --header-h: 136px;
  }

  .brand-mark {
    font-size: 112px;
  }

  .brand-line {
    margin-top: -8px;
  }

  .brand-name {
    font-size: 32px;
  }

  .brand-role {
    padding-bottom: 2px;
    font-size: 10px;
  }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 6vw;
    --header-h: 118px;
  }

  .brand-mark {
    font-size: 96px;
  }

  .brand-line {
    gap: 10px;
    margin-top: -7px;
  }

  .brand-name {
    font-size: 28px;
  }

  .brand-role {
    padding-bottom: 2px;
    font-size: 9.5px;
  }

  .nav {
    gap: 26px;
  }

  .about-main {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    gap: 7vw;
  }

  .edit-row {
    grid-template-columns: 58px minmax(0, 1.2fr) minmax(100px, 0.7fr) minmax(90px, 0.6fr) 40px;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 102px;
  }

  .brand-mark {
    font-size: 82px;
  }

  .brand-line {
    gap: 9px;
    margin-top: -6px;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-role {
    padding-bottom: 2px;
    font-size: 9px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .footer-row {
    grid-template-columns: auto 1fr auto;
    gap: 13px 24px;
  }

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

  .footer-social {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .footer-city {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .footer-copy {
    grid-column: 3 / 4;
    grid-row: 2;
  }

  .film-head {
    padding-top: 31px;
  }

  .player-wrap {
    width: calc(100% - (var(--gutter) * 2));
    margin-top: 58px;
  }

  .dossier {
    margin-top: 82px;
  }

  .dossier-tools,
  .dossier-section {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 22px;
  }

  .next-project {
    margin-top: 82px;
  }

  .about-main {
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    gap: 6vw;
  }

  .about-timeline {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .edit-row {
    grid-template-columns: 48px minmax(0, 1fr) 58px;
    gap: 14px;
    padding: 17px 0;
  }

  .edit-role,
  .edit-kind {
    display: none;
  }

  .edit-title {
    font-size: 18px;
  }

  .journal-grid {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 32px;
  }

  .about-main {
    grid-template-columns: 1fr;
    gap: 46px;
    margin-top: 58px;
  }

  .identity-card {
    width: min(100%, 330px);
  }

  .about-method {
    margin-top: 70px;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .method-text {
    max-width: 38ch;
  }

  .about-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 62px;
  }

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

  .palette {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  .swatch-color {
    height: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 84px;
    --gutter: 20px;
  }

  .brand-mark {
    font-size: 60px;
  }

  .brand-line {
    gap: 8px;
    margin-top: -4px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-role {
    padding-bottom: 1px;
    font-size: 8.5px;
  }

  .menu-toggle {
    width: 32px;
    height: 32px;
  }

  .work {
    height: 70vh;
  }

  .work-caption {
    bottom: 108px;
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: 0.19em;
  }

  .site-footer {
    padding: 19px var(--gutter) 22px;
  }

  .footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 20px;
    font-size: 8.5px;
  }

  .footer-brand {
    margin-right: auto;
  }

  .footer-email {
    margin-left: auto;
    font-size: 9.5px;
  }

  .footer-social {
    width: 100%;
    gap: 15px;
    order: 3;
  }

  .footer-city {
    order: 4;
  }

  .footer-copy {
    order: 5;
    margin-left: auto;
    text-align: right;
  }

  .film-head {
    padding-top: 26px;
  }

  .film-title {
    font-size: 26px;
    line-height: 1.32;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
  }

  .film-short {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.85;
    max-width: 34ch;
  }

  .film-contact {
    margin-top: 24px;
    font-size: 11.5px;
    line-height: 1.75;
  }

  .film-credits {
    margin-top: 13px;
    font-size: 8px;
    line-height: 1.8;
  }

  .player-wrap {
    width: calc(100vw - 40px);
    margin-top: 44px;
  }

  .player-controls {
    height: 42px;
    gap: 9px;
    padding: 0 10px;
  }

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

  .pc-btn {
    width: 19px;
    height: 19px;
  }

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

  .player-poster-play {
    width: 64px;
    height: 64px;
  }

  .player-poster-play svg {
    width: 30px;
    height: 30px;
  }

  .dossier {
    margin-top: 70px;
    padding-bottom: 64px;
  }

  .dossier-inner {
    padding-top: 43px;
  }

  .dossier-head {
    align-items: flex-start;
    font-size: 8px;
    line-height: 1.8;
  }

  .dossier-head-right {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .dossier-title {
    margin-top: 25px;
    font-size: 33px;
  }

  .dossier-intro {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.95;
  }

  .dossier-logline {
    margin-top: 38px;
    padding: 25px 0;
    font-size: 23px;
  }

  .dossier-wide {
    margin-top: 29px;
  }

  .dossier-caption {
    font-size: 7.5px;
  }

  .dossier-tools,
  .dossier-section {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .dossier-tools {
    margin-top: 40px;
    padding-top: 14px;
  }

  .tool-list {
    grid-template-columns: 1fr;
  }

  .tool-list li {
    font-size: 11px;
  }

  .dossier-section {
    padding: 21px 0;
  }

  .dossier-section:first-of-type {
    margin-top: 28px;
  }

  .dossier-prose {
    font-size: 12.5px;
    line-height: 1.95;
  }

  .dossier-block {
    margin-top: 39px;
    padding-top: 14px;
  }

  .asset-grid {
    gap: 6px;
  }

  .asset-grid figcaption {
    font-size: 7.5px;
  }

  .naming-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    font-size: 8.5px;
  }

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

  .swatch-color {
    height: 40px;
  }

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

  .swatch-meta span {
    font-size: 7px;
  }

  .spec-row {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    font-size: 11px;
  }

  .dossier-closing {
    margin-top: 46px;
    padding-top: 19px;
    font-size: 20px;
  }

  .dossier-sign {
    margin-top: 26px;
    font-size: 7.5px;
  }

  .next-project {
    height: 56vh;
    min-height: 320px;
    margin-top: 66px;
  }

  .next-caption {
    bottom: 28px;
  }

  .next-kicker {
    font-size: 8.5px;
  }

  .next-title {
    margin-top: 5px;
    font-size: 22px;
  }

  .editing-page,
  .journal-page,
  .article-page {
    padding-top: 29px;
    padding-bottom: 67px;
  }

  .section-line {
    gap: 16px;
    font-size: 8px;
  }

  .journal-meta {
    margin-top: 13px;
  }

  .journal-title {
    margin-top: 6px;
    font-size: 22px;
  }

  .journal-excerpt {
    font-size: 11.5px;
  }

  .article-meta {
    margin-top: 32px;
  }

  .article-title {
    font-size: 35px;
    line-height: 1.22;
  }

  .article-dek {
    font-size: 12.5px;
  }

  .article-cover {
    margin-top: 28px;
  }

  .article-body {
    margin-top: 38px;
    font-size: 18px;
    line-height: 1.95;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .article-body blockquote {
    padding-left: 16px;
    font-size: 19px;
  }

  .article-end {
    margin-top: 48px;
    font-size: 9px;
  }

  .about-page {
    padding-top: 39px;
    padding-bottom: 70px;
  }

  .about-statement {
    margin-top: 23px;
    font-size: clamp(36px, 10.2vw, 44px);
    line-height: 1.3;
  }

  .about-main {
    margin-top: 48px;
  }

  .identity-card {
    padding: 18px;
    width: min(100%, 300px);
  }

  .identity-mark {
    font-size: 92px;
  }

  .about-copy p {
    font-size: 13px;
  }

  .about-facts {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
    padding-top: 0;
  }

  .about-facts div {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .about-facts p {
    margin-top: 0;
    font-size: 11px;
  }

  .about-method {
    margin-top: 58px;
  }

  .method-title {
    font-size: 21px;
  }

  .about-timeline {
    margin-top: 55px;
  }
}

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

  .page-work .film-title,
  .page-work .film-short,
  .page-work .film-contact,
  .page-work .film-credits,
  .page-work .player-wrap,
  .page-home .works,
  .page-home .site-header .brand,
  .page-home .site-header .nav,
  .page-home .site-header .menu-toggle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .js .work-caption {
    opacity: 1 !important;
    transition: none !important;
  }
}
