:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.14);
  --blue: #0071e3;
  --max: 1440px;
  --pad: clamp(22px, 4.2vw, 68px);
  --radius: clamp(18px, 2vw, 30px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
nav a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
nav a:hover, nav a:focus-visible, nav a.is-active { color: var(--ink); }

main { overflow: hidden; }
.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 58px));
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 14vh, 150px) var(--pad) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .04em;
}
.hero h1 {
  margin: calc(0.08em + 18px) 0 0;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 650;
  line-height: .91;
  letter-spacing: -.075em;
}
.hero p {
  margin: 28px 0 0;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.035em;
}
.round-link {
  align-self: flex-end;
  width: 116px;
  height: 116px;
  margin-top: clamp(46px, 7vw, 84px);
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 14px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.round-link span:last-child { align-self: flex-end; font-size: 22px; }
.round-link:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

.project { padding: clamp(84px, 10vw, 150px) var(--pad); }
.project-heading {
  width: min(100%, var(--max));
  margin: 0 auto clamp(36px, 5vw, 70px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}
.project-index { align-self: start; font-size: 14px; color: var(--muted); }
.project-heading > div:nth-child(2) { transform: translateX(-16px); }
.eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: .11em; color: var(--muted); }
.project h2 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 59px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 620;
}
.project-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
}
.action-link {
  display: inline-flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  white-space: nowrap;
}
.action-link span { transition: transform .2s ease; }
.action-link:hover span { transform: translate(2px, -2px); }
.project-tags { max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: right; }
.single-preview { width: min(100%, var(--max)); margin: 0 auto; }

.photography { background: var(--paper); }
.photo-spread { display: block; overflow: hidden; background: #eee; }
.photo-spread img { height: auto; object-fit: contain; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.photo-spread:hover img { transform: scale(1.008); }

.robot { background: #000; color: #f5f5f7; }
.robot .project-heading { border-color: rgba(255,255,255,.18); }
.robot .project-index, .robot .eyebrow, .robot .project-copy, .robot .project-tags { color: #a1a1a6; }
.video-shell { width: min(100%, var(--max)); margin: 0 auto; }
.video-shell video { aspect-ratio: 16/9; object-fit: cover; background: #111; border-radius: var(--radius); }
.video-caption { display: flex; justify-content: space-between; padding-top: 16px; color: #a1a1a6; font-size: 14px; }
.video-caption a { color: #f5f5f7; }

.app { background: #f5f5f7; }
.app-video { margin: 0 auto; }
.app-video video { aspect-ratio: 103/60; object-fit: cover; background: #111; border-radius: var(--radius); }
.app-video .video-caption { color: var(--muted); }
.app-video .video-caption a { color: var(--ink); }

.film { background: #e9e9eb; }
.film-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .65fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}
.bilibili-frame { overflow: hidden; background: #111; color: #fff; }
.bilibili-frame iframe { aspect-ratio: 16/9; border: 0; background: #000; }
.embed-fallback { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; color: #a1a1a6; font-size: 14px; }
.embed-fallback a { color: #fff; text-align: right; }
.storyboard-card { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-left: 1px solid var(--line); background: #fff; }
.storyboard-card img { flex: 1; min-height: 0; object-fit: cover; object-position: left top; }
.storyboard-info { display: flex; justify-content: space-between; gap: 14px; padding: 18px 20px; font-size: 14px; }
.storyboard-info > span:last-child { color: var(--muted); }

footer {
  min-height: 210px;
  padding: 56px var(--pad);
  background: #000;
  color: #f5f5f7;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
footer > div { display: flex; flex-direction: column; gap: 8px; }
footer strong { font-size: 24px; }
footer span { color: #86868b; font-size: 14px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .site-header { height: auto; min-height: 58px; align-items: flex-start; padding-top: 18px; padding-bottom: 14px; }
  nav { max-width: 260px; justify-content: flex-end; flex-wrap: wrap; row-gap: 8px; }
  .hero { min-height: 72svh; padding-top: 96px; }
  .hero h1 { font-size: clamp(42px, 9vw, 56px); }
  .project-heading { grid-template-columns: 42px 1fr; align-items: start; }
  .project-heading > :last-child { grid-column: 2; justify-self: start; text-align: left; margin-top: 10px; }
  .film-showcase { grid-template-columns: 1fr; }
  .storyboard-card { max-height: 720px; }
  .storyboard-card { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .site-header { display: block; }
  nav { justify-content: flex-start; margin-top: 10px; gap: 14px; }
  nav a { font-size: 13px; }
  .hero { min-height: 76svh; }
  .hero-meta { gap: 18px; }
  .hero h1 { margin-top: calc(.18em + 14px); }
  .round-link { align-self: flex-start; width: 96px; height: 96px; }
  .project { padding-top: 76px; padding-bottom: 76px; }
  .project-heading { grid-template-columns: 1fr; gap: 10px; }
  .project-heading > :last-child, .project-heading > div:nth-child(2) { grid-column: 1; }
  .project-heading > div:nth-child(2) { transform: translateX(-8px); }
  .project h2 { font-size: 30px; }
  .photo-spread img { aspect-ratio: auto; }
  .video-caption, .embed-fallback, .storyboard-info, footer { align-items: flex-start; flex-direction: column; }
  .embed-fallback a { text-align: left; }
}

@media (max-width: 390px) {
  nav a { font-size: 12px; }
  .hero-meta { font-size: 12px; }
  .hero h1 { font-size: 40px; }
}
