/* LI YAN — Visual Direction V2 · cinematic editorial */
:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --bg-deep: #050505;
  --ink: #f2f0eb;
  --ink-muted: #9a9792;
  --ink-dim: #6e6b66;
  --line: #2a2a2a;
  --line-soft: #1c1c1c;
  --accent: #c4b5a0;
  --font: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.75rem);
  --max: 1180px;
  --max-wide: 1440px;
  --max-full: 1680px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hero-focal-x: 34%;
  --hero-focal-y: 38%;
  /* product accents — only inside Beyond Film */
  --norna: #f472b6;
  --portaura: #60a5fa;
  --cullia: #a78bfa;
  --hideclean: #34d399;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

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

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - var(--gutter) * 2, var(--max-wide));
  margin-inline: auto;
}

.wrap-full {
  width: min(100% - var(--gutter) * 2, var(--max-full));
  margin-inline: auto;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.45s var(--ease), background 0.45s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.88);
  border-bottom-color: rgba(242, 240, 235, 0.08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: min(100% - var(--gutter) * 2, var(--max-full));
  margin-inline: auto;
}

.brand {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.brand span {
  color: var(--ink-dim);
  font-weight: 400;
  letter-spacing: 0.18em;
  margin-left: 0.55rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(242, 240, 235, 0.18);
  color: var(--ink);
  width: 46px;
  height: 40px;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.site-nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.3s;
  padding: 0.35rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.4s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-current {
  color: var(--ink);
}

.site-nav a.is-current::after,
.site-nav a:hover::after {
  right: 0;
}

/* ========== Hero — art-directed ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--bg-deep);
}

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

.hero-media picture {
  display: contents;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focal-x) var(--hero-focal-y);
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.02);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 28%, rgba(10, 10, 10, 0.35) 55%, rgba(10, 10, 10, 0.88) 78%, rgba(10, 10, 10, 0.97) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.92) 0%, transparent 48%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, transparent 18%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  /* sit in the dark field right of the portrait — not on the subject */
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(2.5rem, 9vw, 8rem) clamp(3.5rem, 12vh, 7rem);
  text-align: right;
}

.hero-kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(196, 181, 160, 0.9);
}

.hero-name {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 500;
  letter-spacing: 0.38em;
  line-height: 0.95;
  text-indent: 0.38em;
}

.hero-name.is-ready {
  animation: heroIn 1.35s var(--ease-out) both;
}

.hero-role {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.72);
}

@keyframes heroIn {
  from {
    opacity: 0;
    letter-spacing: 0.62em;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.38em;
    transform: none;
  }
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(2rem, 6vh, 3.5rem);
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  writing-mode: vertical-rl;
}

/* ========== Sections ========== */
.section {
  padding: clamp(5rem, 16vh, 9.5rem) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(2.25rem, 5vh, 3.75rem);
  align-items: end;
}

.section-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.15;
}

.section-note {
  margin: 0;
  max-width: 26rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ========== Statement — treatment spread ========== */
.statement {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.78) 55%, rgba(10, 10, 10, 0.88) 100%),
    url("../assets/hero/statement-bg.jpg") center / cover no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.statement-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: clamp(420px, 58vh, 620px);
}

.statement-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
  max-width: 40rem;
}

/* Portfolio frame — landscape; figures centered and fully in frame */
.statement-still {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elev);
}

.statement-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  filter: saturate(0.94) contrast(1.04);
}

.statement-still::after {
  display: none;
}

.statement-fragment {
  margin: 0 0 1.75rem;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 16ch;
}

.statement-body p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: rgba(242, 240, 235, 0.88);
  max-width: 38rem;
}

.statement-beyond {
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted) !important;
  font-size: 0.98rem !important;
  max-width: 36rem !important;
}

/* ========== Selected Works — image-led ========== */
.works-selected {
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.sel-rhythm {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.sel-full,
.sel-pair,
.sel-offset {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.sel-pair {
  grid-template-columns: 1fr 1fr;
}

.sel-offset {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
}

.sel-offset.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-elev);
  color: var(--ink);
}

.work-card:hover {
  color: var(--ink);
}

.work-card .frame {
  position: relative;
  overflow: hidden;
  background: #000;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity 0.6s;
  opacity: 0.96;
}

.work-card:hover img {
  transform: scale(1.035);
  opacity: 1;
}

/* cinematic ratios */
.ratio-235 {
  aspect-ratio: 2.35 / 1;
}

.ratio-219 {
  aspect-ratio: 2.1 / 1;
}

.ratio-169 {
  aspect-ratio: 16 / 9;
}

.ratio-43 {
  aspect-ratio: 4 / 3;
}

.work-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.15rem, 2.5vw, 1.75rem) clamp(1.15rem, 2.5vw, 1.75rem);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82) 72%);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 1;
  pointer-events: none;
}

.work-card .title {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgba(242, 240, 235, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.work-card .meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.62);
}

.work-card.on-dark .cap {
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.92) 65%);
}

/* ========== All Works index — filmography archive ========== */
.all-works {
  border-top: 1px solid var(--line);
  margin-top: clamp(4rem, 10vh, 6.5rem);
  padding-top: clamp(2.25rem, 5vh, 3.5rem);
}

.all-works-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.all-works-head h3 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.all-works-head .count {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.works-cat {
  margin-top: 1.75rem;
}

.works-cat .eyebrow {
  margin-bottom: 0.35rem;
  color: var(--ink-dim);
  font-size: 0.65rem;
}

.work-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s, padding 0.25s;
}

.work-row:hover,
.work-row:focus-visible {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 0.5rem;
  color: var(--ink);
}

.work-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(242, 240, 235, 0.92);
}

.work-meta {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-still {
  width: 96px;
  height: 54px;
  overflow: hidden;
  background: var(--bg-elev);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.work-row:hover .work-still,
.work-row:focus-visible .work-still {
  opacity: 1;
}

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

.work-arrow {
  color: var(--ink-dim);
  font-size: 0.95rem;
  transition: transform 0.25s, color 0.25s;
}

.work-row:hover .work-arrow,
.work-row:focus-visible .work-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Desktop floating still — no layout jump */
.film-preview {
  position: fixed;
  right: clamp(1.25rem, 4vw, 3.25rem);
  top: 50%;
  width: min(28vw, 340px);
  aspect-ratio: 16 / 9;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateY(8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  background: #000;
  overflow: hidden;
}

.film-preview.is-on {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}

.film-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (hover: none), (pointer: coarse) {
  .film-preview {
    display: none !important;
  }

  .work-still {
    width: 84px;
    height: 48px;
    opacity: 0.75;
  }
}

/* ========== About — editorial split ========== */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: stretch;
  min-height: clamp(520px, 78vh, 820px);
}

.about-portrait {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  min-height: 460px;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 24% center;
  filter: grayscale(1) contrast(1.05);
  position: absolute;
  inset: 0;
}

.about-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 2vw, 1.5rem) 0;
}

.about-copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1;
}

.about-copy .role {
  margin: 0 0 1.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.about-copy p {
  color: rgba(242, 240, 235, 0.88);
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-copy .city {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ========== Beyond Film — second identity ========== */
.beyond {
  background: #070707;
  border-block: 1px solid var(--line);
  position: relative;
}

.beyond-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  align-items: end;
}

.beyond-intro .lede {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(242, 240, 235, 0.92);
  max-width: 28ch;
}

.beyond-intro .sub {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.products-stage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), transparent 50%), #0c0c0c;
  border: 1px solid rgba(244, 114, 182, 0.22);
  min-height: 200px;
}

.product-hero .icon img {
  width: clamp(88px, 12vw, 120px);
  height: clamp(88px, 12vw, 120px);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.product-hero h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

.product-hero .tag {
  margin: 0;
  color: var(--ink-muted);
  max-width: 36rem;
  font-size: 1.02rem;
}

.product-hero .eyebrow {
  color: var(--norna);
  margin-bottom: 0;
}

.product-wide {
  grid-column: span 7;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #0b0b0b;
  border: 1px solid rgba(96, 165, 250, 0.18);
}

.product-wide .icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.product-wide h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.product-wide .tag {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.product-wide .eyebrow {
  color: var(--portaura);
  margin-bottom: 0;
  font-size: 0.65rem;
}

.product-pair {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
}

.product-tile {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: #0b0b0b;
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.35s var(--ease);
}

.product-tile:hover {
  transform: translateY(-2px);
}

.product-tile[data-product="cullia"] {
  border-color: rgba(167, 139, 250, 0.28);
}

.product-tile[data-product="hideclean"] {
  border-color: rgba(52, 211, 153, 0.28);
}

.product-tile[data-product="cullia"]:hover {
  border-color: var(--cullia);
}

.product-tile[data-product="hideclean"]:hover {
  border-color: var(--hideclean);
}

.product-tile .icon img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
}

/* Cullia plate is deep navy — optical mass is lower than bright icons; enlarge */
.product-tile[data-product="cullia"] .icon img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.product-tile h3 {
  margin: 0.1rem 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.product-tile .tag {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.product-tile .eyebrow {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}

.product-tile[data-product="cullia"] .eyebrow {
  color: var(--cullia);
}

.product-tile[data-product="hideclean"] .eyebrow {
  color: var(--hideclean);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(196, 181, 160, 0.4);
  padding: 0.7rem 1rem;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
  justify-self: end;
  text-decoration: none;
}

a.product-link:hover {
  background: var(--accent);
  color: #0a0a0a;
}

a.product-link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.product-hero a.product-link {
  border-color: rgba(244, 114, 182, 0.45);
  color: #f9a8d4;
}

.product-hero a.product-link:hover {
  background: var(--norna);
  color: #0a0a0a;
  border-color: var(--norna);
}

.product-wide a.product-link {
  border-color: rgba(96, 165, 250, 0.45);
  color: #93c5fd;
  grid-column: 1 / -1;
  justify-self: start;
}

.product-wide a.product-link:hover {
  background: var(--portaura);
  color: #0a0a0a;
}

.product-tile a.product-link,
.product-tile .product-link {
  padding: 0.5rem 0.7rem;
  font-size: 0.65rem;
}

.product-link.is-disabled {
  color: var(--ink-dim);
  border-color: var(--line);
  cursor: default;
}

/* ========== Contact — quiet end credits ========== */
.contact {
  position: relative;
  background: var(--bg-deep);
  min-height: min(82vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.82) 42%, rgba(5, 5, 5, 0.62) 100%),
    url("../assets/hero/contact-bg.jpg") center/cover no-repeat;
  opacity: 0.92;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, var(--max-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 8vw, 6rem);
  align-items: end;
  padding: clamp(5rem, 14vh, 8rem) 0 clamp(4rem, 10vh, 6rem);
}

.contact-name {
  margin: 0;
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  letter-spacing: 0.28em;
  text-indent: 0.08em;
  font-weight: 500;
  line-height: 0.95;
}

.contact-role {
  margin: 1.35rem 0 0;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.contact-card {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 0.35rem;
}

.contact-city {
  margin: 0;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.72);
  font-size: 0.78rem;
}

.contact-lines {
  display: grid;
  gap: 1.65rem;
}

.contact-line .label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.45rem;
}

.contact-lines a,
.contact-lines .value {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  letter-spacing: 0.06em;
  color: rgba(242, 240, 235, 0.92);
  word-break: break-word;
}

.contact-lines a {
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 240, 235, 0.18);
  transition: color 0.25s, border-color 0.25s;
}

.contact-lines a:hover,
.contact-lines a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.wechat-copy {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  text-align: left;
}

.wechat-copy:hover,
.wechat-copy:focus-visible {
  color: var(--ink);
}

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

.copy-hint {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s;
}

.copy-hint.is-copied {
  color: var(--accent);
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: var(--bg);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

/* ========== Reveal ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ========== Project page ========== */
.project-hero {
  position: relative;
  min-height: min(85vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #000;
}

.project-hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04);
}

.project-hero .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.35) 42%, transparent 68%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, transparent 22%);
}

.project-hero .copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(2.5rem, 7vh, 4rem);
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

.project-hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.85rem, 5.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
}

.project-hero .brand-line {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.7);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.project-meta dt {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.35rem;
}

.project-meta dd {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.project-summary {
  padding: 2.25rem 0;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(242, 240, 235, 0.9);
}

/* Player — cinema frame */
.player-shell {
  background: #000;
  border: 1px solid var(--line);
}

.player-frame {
  position: relative;
  aspect-ratio: 2.35 / 1;
  background: #000;
}

@media (max-width: 720px) {
  .player-frame {
    aspect-ratio: 16 / 9;
  }
}

.player-frame video,
.player-frame .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-frame .poster {
  object-fit: cover;
  opacity: 0.78;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 0;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.35s;
}

.player-overlay[hidden],
video[hidden],
.poster[hidden] {
  display: none !important;
}

.player-overlay:hover {
  background: rgba(0, 0, 0, 0.38);
}

.play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(242, 240, 235, 0.55);
  background: rgba(10, 10, 10, 0.55);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.player-overlay:hover .play-btn {
  transform: scale(1.06);
  border-color: var(--accent);
}

.play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
  margin-left: 5px;
}

.player-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.player-status.is-error {
  color: #d4a574;
}

.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.variant-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}

.variant-btn:hover,
.variant-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

/* Cinematic stills sequence */
.stills {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.stills figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg-elev);
  grid-column: span 6;
}

.stills figure:nth-child(1) {
  grid-column: 1 / -1;
}

.stills figure:nth-child(2) {
  grid-column: span 7;
}

.stills figure:nth-child(3) {
  grid-column: span 5;
}

.stills figure:nth-child(4) {
  grid-column: span 5;
}

.stills figure:nth-child(5) {
  grid-column: span 7;
}

.stills figure:nth-child(n + 6) {
  grid-column: span 6;
}

.stills img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.9s var(--ease);
}

.stills figure:nth-child(1) img {
  aspect-ratio: 2.35 / 1;
}

.stills figure:hover img {
  transform: scale(1.025);
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(3rem, 8vh, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.project-nav a {
  padding: 1.35rem;
  border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}

.project-nav a:hover {
  border-color: var(--accent);
  background: rgba(196, 181, 160, 0.04);
}

.project-nav .dir {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.4rem;
}

.project-nav .next {
  text-align: right;
}

.back-link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.back-link:hover {
  color: var(--accent);
}

/* ========== Responsive ========== */
/* Large desktop baseline uses defaults */

/* Narrow desktop / laptop 1000–1300 — keep full face */
@media (max-width: 1300px) {
  :root {
    --hero-focal-x: 32%;
    --hero-focal-y: 36%;
  }

  .hero-copy {
    text-align: right;
    padding-right: clamp(1.5rem, 4vw, 3rem);
  }

  .statement-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .statement-copy {
    max-width: none;
  }

  .statement-still {
    order: -1;
  }

  .statement-still img {
    position: absolute;
  }

  .beyond-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .beyond-intro {
    grid-template-columns: 1fr;
  }

  .product-wide {
    grid-column: 1 / -1;
  }

  .product-pair {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --hero-focal-x: 42%;
    --hero-focal-y: 28%;
  }

  .sel-pair,
  .sel-offset,
  .sel-offset.reverse {
    grid-template-columns: 1fr;
  }

  .ratio-235,
  .ratio-219,
  .ratio-43 {
    aspect-ratio: 16 / 9;
  }

  .about-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .about-portrait {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-portrait img {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .film-preview {
    display: none !important;
  }

  .work-still {
    width: 84px;
    height: 48px;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

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

  .product-hero .product-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .stills figure,
  .stills figure:nth-child(n) {
    grid-column: 1 / -1 !important;
  }

  .stills figure:nth-child(1) img {
    aspect-ratio: 2.35 / 1;
  }
}

/* Mobile */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    align-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    background: rgba(5, 5, 5, 0.97);
    padding: 4rem var(--gutter) 2rem;
    z-index: 55;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(242, 240, 235, 0.08);
    font-size: 0.95rem;
    letter-spacing: 0.22em;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-copy {
    text-align: left;
    padding-bottom: clamp(2.5rem, 8vh, 4rem);
  }

  .hero-name {
    letter-spacing: 0.22em;
    text-indent: 0;
    font-size: clamp(2.6rem, 14vw, 3.5rem);
  }

  .hero-role {
    letter-spacing: 0.28em;
  }

  /* Mobile: portrait-mobile is already face-complete; center left so profile holds */
  :root {
    --hero-focal-x: 38%;
    --hero-focal-y: 32%;
  }

  .hero-veil {
    background:
      linear-gradient(0deg, rgba(5, 5, 5, 0.97) 0%, rgba(5, 5, 5, 0.55) 32%, transparent 52%),
      linear-gradient(180deg, rgba(5, 5, 5, 0.42) 0%, transparent 18%);
  }

  .scroll-hint {
    display: none;
  }

  .brand span {
    display: none;
  }

  .statement-fragment {
    max-width: none;
  }

  .product-pair {
    grid-template-columns: 1fr;
  }

  .product-tile {
    grid-template-columns: auto 1fr;
  }

  .product-tile .product-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .product-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .contact-name {
    letter-spacing: 0.16em;
    text-indent: 0;
    font-size: clamp(2.75rem, 16vw, 4rem);
  }

  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-nav .next {
    text-align: left;
  }

  .work-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .work-still {
    width: 72px;
    height: 40px;
    opacity: 0.85;
  }

  .ratio-43,
  .ratio-portrait {
    aspect-ratio: 16 / 9;
  }
}

/* Tablet 721–900: portrait-tablet + face-upper focal */
@media (min-width: 721px) and (max-width: 900px) {
  :root {
    --hero-focal-x: 40%;
    --hero-focal-y: 26%;
  }

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

  .hero-name {
    letter-spacing: 0.28em;
  }
}

@media (min-width: 1441px) {
  :root {
    /* keep subject left; free the right field for nameplate */
    --hero-focal-x: 26%;
    --hero-focal-y: 36%;
  }
}

@media (max-width: 480px) {
  :root {
    --hero-focal-x: 32%;
    --hero-focal-y: 28%;
  }

  .hero-name {
    font-size: clamp(2.4rem, 13vw, 3.25rem);
  }

  .hero-copy {
    padding-bottom: clamp(2rem, 7vh, 3.5rem);
  }
}

/* ========== Reduced motion ========== */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    transform: none;
  }
}
