/* =========================================================
   白熊 WHITE BEAR — portfolio
   ========================================================= */
:root {
  --ink: #0a0908;
  --ink-2: #12100e;
  --ink-3: #1b1815;
  --bone: #ece6db;
  --bone-dim: rgba(236, 230, 219, .62);
  --bone-faint: rgba(236, 230, 219, .14);
  --copper: #c8925a;
  --copper-hi: #e2b07a;
  --cinnabar: #b5322a;
  --line: rgba(236, 230, 219, .12);

  --f-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-cn);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--copper); color: var(--ink); }

.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 300; }
.serif-en { font-family: var(--f-en); }
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { color: var(--copper); margin: 0 0 28px; }
.accent { color: var(--copper); }

/* ---------- seal (印章) ---------- */
.seal {
  display: inline-grid; grid-template-columns: 1fr; place-items: center;
  width: 30px; height: 30px; padding: 2px;
  background: var(--cinnabar); color: #f6e9dc;
  font-family: var(--f-cn); font-weight: 900; font-size: 12px; line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 233, 220, .55), inset 0 0 0 3px var(--cinnabar), inset 0 0 0 3.6px rgba(246,233,220,.35);
}
.seal span { display: block; }
.seal--lg { width: 64px; height: 64px; font-size: 24px; border-radius: 5px; padding: 6px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.loader__bar {
  position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink);
  transition: transform 1.3s var(--ease-io);
}
.loader__bar--top { top: 0; }
.loader__bar--bot { bottom: 0; }
.loader__center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity .5s ease;
}
.loader__meta { display: flex; gap: 28px; color: var(--bone-dim); }
.loader__count { font-size: 15px; letter-spacing: .3em; color: var(--copper); min-width: 4ch; text-align: center; }
.loader__count::after { content: " %"; }
body.is-loaded .loader__center { opacity: 0; }
body.is-loaded .loader__bar--top { transform: translateY(-100%); }
body.is-loaded .loader__bar--bot { transform: translateY(100%); }
body.is-loaded .loader { visibility: hidden; transition: visibility 0s 1.4s; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--bone); mix-blend-mode: difference;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s;
  display: grid; place-items: center;
}
.cursor__label { opacity: 0; color: var(--bone); font-size: 7.5px; letter-spacing: .16em; padding-left: .16em; white-space: nowrap; transition: opacity .2s; }
.cursor.is-label {
  width: 44px; height: 44px; margin: -22px 0 0 -22px; mix-blend-mode: normal;
  background: rgba(10, 9, 8, .28); border: 1px solid rgba(236, 230, 219, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cursor.is-label .cursor__label { opacity: 1; transition-delay: .1s; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: background .5s, padding .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(10, 9, 8, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__name { color: var(--bone); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 44px); }
.nav__links a { position: relative; color: var(--bone-dim); transition: color .3s; }
.nav__links a i { font-style: normal; color: var(--copper); margin-right: 8px; font-size: 9px; vertical-align: 2px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__tc { display: flex; align-items: center; gap: 10px; color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--cinnabar); box-shadow: 0 0 10px var(--cinnabar); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--ink); }
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.03); transition: opacity 1.6s ease, transform 7s linear;
}
.hero__video.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,9,8,.72) 0%, rgba(10,9,8,.35) 45%, transparent 75%),
    radial-gradient(120% 90% at 30% 60%, transparent 30%, rgba(10,9,8,.65) 100%),
    linear-gradient(180deg, rgba(10,9,8,.55) 0%, transparent 25%, transparent 55%, rgba(10,9,8,.85) 100%);
}
.letterbox { position: absolute; left: 0; right: 0; height: 6.5vh; background: var(--ink); z-index: 2; transition: height 1.6s var(--ease-io) .2s; }
.letterbox--top { top: 0; } .letterbox--bot { bottom: 0; }
body.is-loading .letterbox { height: 50%; }

.hero__content {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(6.5vh + 120px);
  max-width: 1100px;
}
.hero__kicker { color: var(--copper); margin: 0 0 26px; }
.hero__title {
  margin: 0; font-weight: 700; letter-spacing: .02em; line-height: 1.04;
  font-size: clamp(52px, 9.6vw, 168px);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:nth-child(2) { color: transparent; -webkit-text-stroke: 1px rgba(236,230,219,.85); font-weight: 500; }
.hero__sub { margin: 26px 0 0; font-size: clamp(20px, 2vw, 30px); color: var(--bone-dim); font-weight: 300; }

[data-hero-in] { opacity: 0; transform: translateY(105%); transition: transform 1.4s var(--ease), opacity 1.4s var(--ease); }
body.is-loaded [data-hero-in] { opacity: 1; transform: none; }
body.is-loaded .hero__kicker { transition-delay: .9s; }
body.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: 1s; }
body.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 1.12s; }
body.is-loaded .hero__sub { transition-delay: 1.3s; }
body.is-loaded .hero__vertical { transition-delay: 1.5s; }

.hero__vertical {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; translate: 0 -50%;
  writing-mode: vertical-rl; font-size: 15px; letter-spacing: .6em; color: var(--bone-dim);
  padding-top: 64px; border-top: 1px solid var(--copper);
}
body.is-loaded .hero__vertical { transform: none; }

.hero__hud {
  position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: calc(6.5vh + 32px);
  display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: 40px; color: var(--bone-dim);
}
.hero__now { display: flex; flex-direction: column; gap: 6px; }
.hero__now-label { color: var(--copper); font-size: 9px; }
.hero__now-title { color: var(--bone); transition: opacity .5s; }
.hero__progress { display: flex; gap: 6px; }
.hero__progress span { flex: 1; height: 1px; background: var(--bone-faint); position: relative; overflow: hidden; }
.hero__progress span i { position: absolute; inset: 0; background: var(--bone); transform: scaleX(0); transform-origin: left; }
.hero__scroll { display: flex; align-items: center; gap: 14px; color: var(--bone); }
.hero__scroll-line { width: 56px; height: 1px; background: var(--bone-faint); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--copper); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(120px, 18vh, 220px) 0 clamp(100px, 14vh, 180px); }
.manifesto__text {
  margin: 0; max-width: 22em;
  font-size: clamp(26px, 3.6vw, 58px); line-height: 1.45; font-weight: 500; letter-spacing: .02em;
}
.manifesto__text .ch { opacity: .14; transition: opacity .25s linear; }
.manifesto__text .ch.on { opacity: 1; }
.manifesto__stats {
  margin-top: clamp(80px, 12vh, 140px);
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
}
.manifesto__stats > div { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 8px; }
.manifesto__stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.manifesto__stats b { font-weight: 300; font-size: clamp(56px, 7vw, 104px); line-height: 1; color: var(--bone); }
.manifesto__stats span { color: var(--copper); }
.manifesto__stats small { color: var(--bone-dim); font-size: 14px; }
.ratios { display: flex; align-items: flex-end; gap: 18px; height: clamp(56px, 7vw, 104px); }
.ratio { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.ratio i { display: block; height: var(--h); aspect-ratio: var(--ar); border: 1px solid var(--bone-dim); transition: background .5s var(--ease), border-color .5s; }
.ratio em { font-style: normal; font-size: 15px; line-height: 1; color: var(--bone); }
.ratio--scope { --ar: 2.39 / 1; --h: 34%; }
.ratio--wide { --ar: 16 / 9; --h: 46%; }
.ratio--tall { --ar: 9 / 16; --h: 74%; }
.ratio:hover i { background: rgba(200, 146, 90, .18); border-color: var(--copper); }
.manifesto__stats > div:nth-child(2) { transition-delay: .12s; }
.manifesto__stats > div:nth-child(3) { transition-delay: .24s; }

/* ---------- section heads ---------- */
.section-head { margin-bottom: clamp(64px, 10vh, 120px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-title { margin: 0; font-size: clamp(44px, 7vw, 112px); font-weight: 700; line-height: 1.1; letter-spacing: .02em; }
.section-note { margin: 20px 0 0; font-size: clamp(18px, 1.6vw, 24px); color: var(--bone-dim); }

/* ---------- works ---------- */
.works { padding: clamp(80px, 12vh, 140px) 0 40px; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.work { margin-bottom: clamp(120px, 20vh, 240px); }
.work__top { display: flex; justify-content: space-between; color: var(--bone-dim); padding-bottom: 16px; }
.work__top span:first-child { color: var(--copper); }

.work__frame {
  position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--ink-3); cursor: none;
  clip-path: inset(12% 8% 12% 8%); transition: clip-path 1.6s var(--ease-io);
}
.work__frame.is-in { clip-path: inset(0 0 0 0); }

/* per-work aspect ratio: data-ratio="scope" | "16x9" | "9x16" */
.work[data-ratio="16x9"] .work__frame { aspect-ratio: 16 / 9; }
.work[data-ratio="9x16"] {
  display: grid; grid-template-columns: min(40vw, calc(78vh * 9 / 16)) 1fr;
  column-gap: clamp(32px, 6vw, 120px); align-items: end;
}
.work[data-ratio="9x16"] .work__top { grid-column: 1 / -1; }
.work[data-ratio="9x16"] .work__frame { aspect-ratio: 9 / 16; clip-path: inset(6% 10% 6% 10%); }
.work[data-ratio="9x16"] .work__frame.is-in { clip-path: inset(0 0 0 0); }
.work[data-ratio="9x16"] .work__body,
.work--alt[data-ratio="9x16"] .work__body { grid-template-columns: 1fr; gap: 36px; padding-top: 0; }
.work--alt[data-ratio="9x16"] { grid-template-columns: 1fr min(40vw, calc(78vh * 9 / 16)); }
.work--alt[data-ratio="9x16"] .work__frame { grid-column: 2; grid-row: 2; }
.work--alt[data-ratio="9x16"] .work__body { grid-column: 1; grid-row: 2; }
.work--alt[data-ratio="9x16"] .work__titles { order: 0; text-align: left; }
.work__poster, .work__loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__poster { transform: scale(1.12); transition: transform 2.2s var(--ease); }
.work__frame.is-in .work__poster { transform: none; }
.work__loop { opacity: 0; transition: opacity .8s ease; }
.work__frame.is-playing .work__loop { opacity: 1; }
.work__overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(10,9,8,.35), transparent 50%); }
.work__play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(236,230,219,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .6s var(--ease), opacity .4s;
}
.work__play svg { width: 26px; fill: var(--bone); margin-left: 4px; }
@media (hover: hover) and (pointer: fine) { .work__play { opacity: 0; } }
.work__corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--bone); opacity: .7; transition: all .6s var(--ease); }
.work__corner--tl { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.work__corner--tr { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.work__corner--bl { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.work__corner--br { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }
.work__frame:hover .work__corner { width: 36px; height: 36px; opacity: 1; border-color: var(--copper); }

.work__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 120px); padding-top: clamp(36px, 5vh, 64px); }
.work--alt .work__body { grid-template-columns: 1fr 1.1fr; }
.work--alt .work__titles { order: 2; text-align: right; }
.work__title { margin: 0; font-size: clamp(56px, 9vw, 150px); line-height: 1; font-weight: 900; letter-spacing: .04em; }
.work__en { margin: 14px 0 0; font-size: clamp(20px, 2vw, 30px); color: var(--copper-hi); font-weight: 300; }
.work__info { transition-delay: .12s; }
.work__tagline { margin: 0 0 18px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; }
.work__desc { margin: 0; color: var(--bone-dim); font-size: 15px; line-height: 2; max-width: 34em; }
.work__meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 34px 0 34px; border-top: 1px solid var(--line); }
.work__meta div { padding: 14px 28px 0 0; }
.work__meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.work__meta dt { color: var(--copper); font-size: 9px; margin-bottom: 6px; }
.work__meta dd { margin: 0; color: var(--bone); text-transform: none; letter-spacing: .06em; font-size: 12px; }

.btn-play {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 22px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--bone);
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s;
}
.btn-play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bone); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-play:hover { color: var(--ink); border-color: var(--bone); }
.btn-play:hover::before { transform: none; }
.btn-play__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cinnabar); }
.btn-play__tc { color: var(--copper); }
.btn-play:hover .btn-play__tc { color: var(--cinnabar); }

/* ---------- filmstrip ---------- */
.frames { padding: clamp(80px, 12vh, 140px) 0 clamp(100px, 14vh, 180px); background: var(--ink-2); overflow: hidden; }
.strip {
  position: relative; padding: 22px 0; margin-bottom: 18px; background: #050504;
  transform: rotate(-1.2deg) scale(1.03);
}
.strip[data-dir="right"] { transform: rotate(1.2deg) scale(1.03); }
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(236,230,219,.22) 14px 26px);
  -webkit-mask: linear-gradient(#000, #000); border-radius: 2px;
}
.strip::before { top: 6px; } .strip::after { bottom: 6px; }
.strip__track { display: flex; gap: 10px; width: max-content; animation: marquee 70s linear infinite; }
.strip[data-dir="right"] .strip__track { animation-direction: reverse; }
.strip:hover .strip__track { animation-play-state: paused; }
.strip figure { position: relative; margin: 0; width: clamp(280px, 30vw, 460px); aspect-ratio: 2.39 / 1; overflow: hidden; flex: none; }
.strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.8); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.strip figure:hover img { filter: none; transform: scale(1.06); }
.strip figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 9px; color: var(--bone); opacity: 0; transition: opacity .4s; }
.strip figure:hover figcaption { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- process ---------- */
.process { padding: clamp(120px, 18vh, 200px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 32px 26px 40px 0; position: relative; transition-delay: calc(var(--i, 0) * .1s); }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--copper); transition: width 1s var(--ease); }
.steps li + li::before { left: -1px; }
.steps li:hover::before { width: 100%; }
.steps__no { font-size: 56px; line-height: 1; color: var(--copper); font-weight: 300; }
.steps h4 { margin: 28px 0 4px; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.steps p { margin: 0; color: var(--bone-dim); font-size: 14px; line-height: 1.9; }
.steps p.serif-en { font-size: 17px; margin-bottom: 18px; color: var(--copper-hi); }

.services { margin-top: clamp(100px, 14vh, 160px); }
.services__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.services__list li {
  font-size: clamp(26px, 3.6vw, 56px); font-weight: 500; line-height: 1.5; color: var(--bone-dim);
  transition: color .4s;
}
.services__list li:hover { color: var(--bone); }
.services__list li:not(:last-child)::after { content: "／"; color: var(--copper); margin: 0 .35em; font-weight: 300; }

/* ---------- contact ---------- */
.contact { position: relative; padding: clamp(140px, 22vh, 260px) 0 clamp(100px, 14vh, 160px); overflow: hidden; border-top: 1px solid var(--line); }
.contact__bg { position: absolute; inset: 0; opacity: .16; }
.contact__bg video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, transparent 40%, var(--ink) 100%); }
.contact .wrap { position: relative; }
.contact__title { margin: 0; font-size: clamp(54px, 10vw, 176px); line-height: 1.08; font-weight: 900; letter-spacing: .02em; }
.contact__en { margin: 24px 0 0; font-size: clamp(20px, 2vw, 30px); color: var(--bone-dim); }
.contact__grid { margin-top: clamp(64px, 10vh, 120px); display: grid; grid-template-columns: 2fr 1fr 1fr; border-top: 1px solid var(--line); }
.contact__grid > * { padding: 28px 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
.contact__grid > * + * { padding-left: 24px; border-left: 1px solid var(--line); }
.contact__grid span.mono { color: var(--copper); }
.contact__grid b { font-weight: 500; font-size: clamp(17px, 1.5vw, 22px); word-break: break-all; }
.contact__mail { position: relative; }
.contact__mail b { font-family: var(--f-en); font-weight: 400; font-size: clamp(24px, 2.6vw, 40px); transition: color .4s; }
.contact__mail .arrow { position: absolute; right: 28px; top: 28px; font-size: 28px; color: var(--copper); transition: transform .6s var(--ease); }
.contact__mail:hover b { color: var(--copper-hi); }
.contact__mail:hover .arrow { transform: translateX(10px) rotate(-45deg); }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--bone-dim); font-size: 10px; }
.footer a:hover { color: var(--copper); }

/* ---------- player ---------- */
.player {
  position: fixed; inset: 0; z-index: 92; background: #000;
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; transition: opacity .6s ease;
}
.player[hidden] { display: none; }
.player.is-open { opacity: 1; }
.player__head, .player__foot { display: flex; align-items: center; gap: 14px; padding: 18px var(--gutter); color: var(--bone-dim); }
.player__head #playerTitle { color: var(--bone); }
.player__close { margin-left: auto; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--bone); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .3s, color .3s; }
.player__close:hover { border-color: var(--copper); color: var(--copper); }
.player__foot { justify-content: space-between; }
.player__stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.player__stage video { width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: #000; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li, .steps li + li { padding: 28px 20px 36px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .steps li::before, .steps li + li::before { left: 0; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero__vertical { display: none; }
  .hero__hud { grid-template-columns: 1fr auto; }
  .hero__progress { grid-column: 1 / -1; order: -1; }
  .hero__content { bottom: calc(6.5vh + 140px); }
  .work__body, .work--alt .work__body { grid-template-columns: 1fr; }
  .work--alt .work__titles { order: 0; text-align: left; }
  .work__meta { grid-template-columns: repeat(2, auto); }
  .work__meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .work__frame { aspect-ratio: 16 / 9; }
  .work[data-ratio="9x16"], .work--alt[data-ratio="9x16"] { display: block; }
  .work[data-ratio="9x16"] .work__frame { width: min(100%, 420px); margin: 0 auto; }
  .work[data-ratio="9x16"] .work__body { padding-top: clamp(36px, 5vh, 64px); }
  .manifesto__stats, .contact__grid { grid-template-columns: 1fr; }
  .manifesto__stats > div + div, .contact__grid > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
  .contact__mail .arrow { right: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .nav__tc { display: none; }
  .hero__title { font-size: clamp(44px, 13vw, 72px); }
  .work__play { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .manifesto__text .ch { opacity: 1; }
}

/* =========================================================
   MOTION LAYER (v2)
   ========================================================= */
html.has-smooth { scroll-behavior: auto; }

/* nav hides while scrolling down, returns on the way up */
.nav { transition: background .5s, padding .5s var(--ease), border-color .5s, transform .7s var(--ease); }
.nav.is-hidden { transform: translateY(-100%); }

/* ---------- WebGL hero ---------- */
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.hero.gl-on .hero__gl { opacity: 1; }
.hero.gl-on .hero__video { opacity: 0 !important; }
.hero__content { transform: translate3d(var(--mx, 0px), calc(var(--hp, 0) * -140px + var(--my, 0px)), 0); opacity: calc(1 - var(--hp, 0) * 1.5); will-change: transform; }
.hero__hud { opacity: calc(1 - var(--hp, 0) * 2.2); }
body.lb-done .letterbox { transition: none; height: calc(6.5vh + var(--hp, 0) * 12vh); }

/* ---------- split characters ---------- */
[data-split][data-reveal] { opacity: 1; transform: none; }
.char { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .12em; margin: -.08em -.03em -.12em; }
.char > span {
  display: inline-block; transform: translate3d(0, 118%, 0) rotate(9deg); transform-origin: 0 100%;
  transition: transform 1.3s var(--ease) calc(var(--ci, 0) * 38ms);
}
.is-in .char > span, .is-in.char > span { transform: none; }
.hero__title .char > span {
  filter: blur(12px);
  transition: transform 1.6s var(--ease) calc(.95s + var(--ci, 0) * 75ms), filter 1.6s var(--ease) calc(.95s + var(--ci, 0) * 75ms);
}
body.is-loaded .hero__title .char > span { transform: none; filter: none; }

/* ---------- scroll rail ---------- */
.rail {
  position: fixed; right: 16px; top: 50%; translate: 0 -50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.rail.is-on { opacity: 1; }
.rail__label, .rail__pct { writing-mode: vertical-rl; font-size: 9px; color: var(--bone-dim); font-variant-numeric: tabular-nums; }
.rail__track { width: 1px; height: 22vh; background: var(--bone-faint); position: relative; overflow: hidden; }
.rail__track i { position: absolute; inset: 0; background: var(--copper); transform-origin: top; transform: scaleY(var(--p, 0)); }

/* ---------- parallax inside work frames ---------- */
.work__poster, .work__loop { top: -9%; height: 118%; translate: 0 var(--py, 0px); }
.work__frame { transition: clip-path 1.6s var(--ease-io), transform .8s var(--ease); }

/* ---------- filmstrip reacts to scroll speed ---------- */
.strip figure { transform: skewX(var(--skew, 0deg)); }

/* ---------- magnetic controls ---------- */
.btn-play { transition: color .5s var(--ease), border-color .5s, transform .7s var(--ease); }
.player__close { transition: border-color .3s, color .3s, transform .7s var(--ease); }

/* ---------- player opens out of the clicked frame ---------- */
.player { opacity: 1; transition: clip-path 1.05s var(--ease-io); }
.player__head, .player__foot, .player__stage { opacity: 0; transition: opacity .6s ease; }
.player.is-open .player__head, .player.is-open .player__foot, .player.is-open .player__stage { opacity: 1; transition-delay: .55s; }

@media (max-width: 860px) {
  .rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .char > span, .hero__title .char > span { transform: none !important; filter: none !important; }
}

/* big display headlines are artwork, not copy: no selection boxes on them */
.hero__title, .section-title, .work__title, .contact__title, .manifesto__stats b, .ratios, .seal {
  -webkit-user-select: none; user-select: none;
}

/* contact values stay selectable; copy buttons for one-click copying */
.contact__grid b { -webkit-user-select: text; user-select: text; }
.contact__value { align-self: flex-start; -webkit-user-drag: none; }
.copy {
  align-self: flex-start; margin-top: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 9px; color: var(--bone-dim); transition: color .3s, border-color .3s;
}
.copy:hover { color: var(--bone); border-color: var(--bone-dim); }
.copy.is-done { color: var(--copper); border-color: var(--copper); }
