﻿@font-face {
  font-family: "Arimo";
  src: url("assets/fonts/Arimo-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Arimo";
  src: url("assets/fonts/Arimo-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Arimo";
  src: url("assets/fonts/Arimo-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("assets/fonts/MiSans-Normal.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("assets/fonts/MiSans-Demibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("assets/fonts/MiSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "MiSans-Demibold";
  src: url("assets/fonts/MiSans-Demibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MiSans-Semibold";
  src: url("assets/fonts/MiSans-Demibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "MiSans-Medium";
  src: url("assets/fonts/MiSans-Normal.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #fff;
  --paper: #fff;
  --ink: #060606;
  --muted: #7f858d;
  --line: rgba(0, 0, 0, 0.1);
  --soft-line: rgba(0, 0, 0, 0.06);
  --mist: #f6f6f6;
  --card: rgba(120, 120, 120, 0.055);
  --accent: #ff5b16;
  --header-height: 80px;
  --container: 1320px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--mist);
  color: var(--ink);
  font-family: "Arimo", "MiSans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

body.dark {
  color-scheme: dark;
  --page: #080808;
  --paper: #0c0c0c;
  --ink: #f5f5f5;
  --muted: #959ba3;
  --line: rgba(255, 255, 255, 0.15);
  --soft-line: rgba(255, 255, 255, 0.09);
  --mist: #111;
  --card: rgba(255, 255, 255, 0.06);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #ff6a32;
  outline-offset: 4px;
}

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

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

figure,
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.page-transition {
  visibility: hidden;
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.48s var(--ease), opacity 0.12s ease, visibility 0.48s;
}

.page-transition.is-active {
  visibility: visible;
  opacity: 1;
  transform: scaleY(1);
}

.page-transition.is-leaving {
  transform-origin: top;
  transform: scaleY(0);
}

.transition-mark {
  width: 82px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s 0.2s ease, transform 0.3s 0.18s ease;
}

.page-transition.is-active .transition-mark {
  opacity: 1;
  transform: scale(1);
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: blur(16px);
  transition: color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
}

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

.site-header.is-home {
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
  backdrop-filter: none;
}

.header-inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  justify-self: start;
  width: 58px;
  height: 40px;
}

.brand img {
  width: 58px;
  height: 40px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.site-header.is-home .brand img,
body.dark .brand img {
  filter: invert(1);
}

.desktop-nav {
  --nav-ink: currentColor;
  --nav-accent: #ef5d39;
  --nav-duration: 470ms;
  --nav-phase-delay: 80ms;
  --nav-sweep-ease: cubic-bezier(0.645, 0.045, 0.355, 1);
  --nav-settle-ease: cubic-bezier(0.22, 1, 0.36, 1);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 37.2084px;
  width: auto;
  font-family: "Microsoft YaHei", "MiSans", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.desktop-nav a {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.nav-text-motion__stage {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
}

.nav-text-motion__base {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  white-space: nowrap;
}

.nav-text-motion__cover {
  --nav-enter-delay: 0ms;
  --nav-exit-delay: 0ms;

  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  color: var(--nav-accent);
  opacity: 0.82;
  filter: blur(1.4px);
  pointer-events: none;
  text-shadow: 1.2px 0.8px 2px rgb(239 93 57 / 20%);
  transform: translate3d(0, 105%, 0) skewY(12deg);
  transform-origin: 0 0;
  white-space: nowrap;
  backface-visibility: hidden;
  will-change: filter, opacity, transform;
  transition:
    transform var(--nav-duration) var(--nav-sweep-ease) var(--nav-exit-delay),
    filter 430ms var(--nav-settle-ease) var(--nav-exit-delay),
    opacity 400ms var(--nav-settle-ease) var(--nav-exit-delay),
    text-shadow 430ms var(--nav-settle-ease) var(--nav-exit-delay);
}

.nav-text-motion__cover--lead {
  --nav-exit-delay: var(--nav-phase-delay);

  clip-path: polygon(0 0, 59.5% 0, 56.5% 100%, 0 100%);
}

.nav-text-motion__cover--follow {
  --nav-enter-delay: var(--nav-phase-delay);

  clip-path: polygon(51.5% 0, 100% 0, 100% 100%, 54.5% 100%);
}

@media (hover: hover) and (pointer: fine) {
  .nav-text-motion__item:hover .nav-text-motion__cover {
    opacity: 1;
    filter: none;
    text-shadow: none;
    transform: translateZ(0) skewY(0deg);
    transition:
      transform var(--nav-duration) var(--nav-sweep-ease) var(--nav-enter-delay),
      filter 450ms var(--nav-settle-ease) var(--nav-enter-delay),
      opacity 400ms var(--nav-settle-ease) var(--nav-enter-delay),
      text-shadow 450ms var(--nav-settle-ease) var(--nav-enter-delay);
  }
}

.nav-text-motion__item.is-current .nav-text-motion__cover,
.nav-text-motion__item.is-activating .nav-text-motion__cover {
  opacity: 1;
  filter: none;
  text-shadow: none;
  transform: translateZ(0) skewY(0deg);
  transition:
    transform var(--nav-duration) var(--nav-sweep-ease) var(--nav-enter-delay),
    filter 450ms var(--nav-settle-ease) var(--nav-enter-delay),
    opacity 400ms var(--nav-settle-ease) var(--nav-enter-delay),
    text-shadow 450ms var(--nav-settle-ease) var(--nav-enter-delay);
}

.nav-text-motion__item.is-current .nav-text-motion__base {
  color: var(--nav-accent);
}

.nav-text-motion__item:focus-visible {
  outline: 1px solid rgb(239 93 57 / 48%);
  outline-offset: 5px;
}

.nav-text-motion__pulse {
  position: absolute;
  inset: -7px -12px;
  z-index: 0;
  display: none;
  border: 1px solid rgb(239 93 57 / 12%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgb(239 93 57 / 6%) 0%,
    rgb(239 93 57 / 2%) 48%,
    transparent 74%
  );
  pointer-events: none;
}

.nav-text-motion__item.is-pulsing .nav-text-motion__pulse {
  display: block;
  animation: nav-text-pulse 470ms var(--nav-settle-ease) forwards;
}

@keyframes nav-text-pulse {
  0% {
    opacity: 0;
    transform: scale3d(0.86, 0.7, 1);
  }

  20% {
    opacity: 0.62;
  }

  100% {
    opacity: 0;
    transform: scale3d(1.06, 1.12, 1);
  }
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.icon-button,
.menu-trigger,
.back-to-top,
.search-close,
.lightbox button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button {
  width: 32px;
  height: 40px;
  padding: 8px 4px;
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.sun-and-moon .sun-beams {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.menu-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 0 0 14px;
  border-left: 1px solid currentColor;
  font-size: 16px;
}

.menu-trigger i,
.menu-trigger i::before,
.menu-trigger i::after {
  display: block;
  width: 25px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-trigger i {
  position: relative;
}

.menu-trigger i::before,
.menu-trigger i::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-trigger i::before {
  top: -7px;
}

.menu-trigger i::after {
  top: 7px;
}

.menu-trigger[aria-expanded="true"] i {
  background: transparent;
}

.menu-trigger[aria-expanded="true"] i::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-trigger[aria-expanded="true"] i::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  visibility: hidden;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  padding: 18px 22px 26px;
  background: var(--page);
  color: var(--ink);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
}

#app {
  min-height: 100vh;
  outline: none;
}

.home-view {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: #030303;
  color: #fff;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.85s ease, visibility 0.85s;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-slide video,
.hero-slide .hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hero-slide.is-active video,
.hero-slide.is-active .hero-poster {
  transform: scale(1);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.1) 76%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 40%);
}

.hero-content {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: min(1290px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
}

.hero-eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-title {
  max-width: 1000px;
  margin-bottom: 22px;
  font-size: clamp(66px, 7.2vw, 138px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-description {
  max-width: 560px;
  margin-bottom: 28px;
  font-family: "MiSans", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
}

.hero-cta span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #050505;
  transition: transform 0.25s ease;
}

.hero-cta:hover span {
  transform: translateX(4px);
}

.hero-slide .hero-eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-description,
.hero-slide .hero-cta {
  opacity: 0;
  transform: translateY(35px);
}

.hero-slide.is-active .hero-eyebrow,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-description,
.hero-slide.is-active .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
}

.hero-slide.is-active .hero-title {
  transition-delay: 0.08s;
}

.hero-slide.is-active .hero-description {
  transition-delay: 0.16s;
}

.hero-slide.is-active .hero-cta {
  transition-delay: 0.22s;
}

.hero-controls {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 34px;
  left: 0;
  width: min(1290px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 36px;
}

.hero-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.hero-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.hero-progress button {
  position: relative;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-progress button::before {
  position: absolute;
  top: 11px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.35);
}

.hero-progress button::after {
  position: absolute;
  top: 11px;
  left: 0;
  width: 0;
  height: 1px;
  content: "";
  background: #fff;
}

.hero-progress button.is-active::after {
  width: 100%;
}

.hero-index {
  min-width: 54px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.paper-page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-top: var(--header-height);
  border-radius: 0 0 40px 40px;
  background: var(--paper);
}

.page-container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.portfolio-page .page-container,
.project-page .page-container {
  width: min(1290px, calc(100% - 40px));
}

.portfolio-page {
  padding-bottom: 12vh;
}

.portfolio-hero {
  position: relative;
  height: 45vh;
  margin-top: clamp(82px, 12.7vh, 127px);
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: #252525 url("assets/portfolio-hero.png") center / cover no-repeat;
  color: #fff;
}

.portfolio-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.08);
}

.portfolio-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.portfolio-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(50px, 5vw, 80px);
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.2;
  text-transform: uppercase;
}

.portfolio-hero p {
  margin: 0;
  font-family: "MiSans", sans-serif;
  font-size: 22px;
  line-height: 1.4;
}

.portfolio-section {
  padding-top: 30px;
}

.outline-title {
  margin-bottom: 30px;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 48%, transparent);
  font-family: "MiSans-Demibold", sans-serif;
  font-size: clamp(46px, 4.15vw, 64px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.2;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.project-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), opacity 0.3s ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-card-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  gap: 5px;
  text-align: center;
  opacity: 0;
  transition: opacity 300ms ease;
}

.project-card h3 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  text-transform: uppercase;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-card:hover::after,
.project-card:hover .project-card-copy,
.project-card:focus-visible::after,
.project-card:focus-visible .project-card-copy {
  opacity: 1;
}

.work-section {
  padding-top: 92px;
}

.work-masonry {
  position: relative;
  width: min(1140px, 100%);
  min-height: 360px;
  margin: 0 auto;
}

.work-masonry-item {
  position: absolute;
  margin: 0;
}

.work-card,
.work-video-card {
  padding: 0;
  border: 0;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #080808;
  box-shadow: none;
}

.work-card {
  cursor: pointer;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-video-card {
  isolation: isolate;
  aspect-ratio: 16 / 9;
}

.work-video-card::before {
  position: absolute;
  z-index: 0;
  inset: -10px;
  content: "";
  background:
    linear-gradient(rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.18)),
    var(--video-poster) center / cover no-repeat;
  filter: blur(10px) saturate(0.88) brightness(0.72);
  transform: scale(1.08);
}

.work-video-card video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: contain;
}

.work-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  color: #fff;
  text-align: center;
  opacity: 0;
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(0, 10px, 0);
}

.work-card-copy strong {
  margin-bottom: 3px;
  font-size: 20px;
}

.work-card small {
  opacity: 0.82;
  text-transform: uppercase;
}

.work-card:hover img {
  transform: scale(1.025);
}

.work-card:hover::after,
.work-card:hover .work-card-copy,
.work-card:focus-visible::after,
.work-card:focus-visible .work-card-copy {
  opacity: 1;
}

.work-card:hover .work-card-copy,
.work-card:focus-visible .work-card-copy {
  transform: translate3d(0, 0, 0);
}

.work-video-toggle {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  padding: 22px;
  border: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 56%);
  color: #fff;
  cursor: pointer;
  opacity: 1;
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-video-card.is-playing .work-video-toggle {
  opacity: 0;
  pointer-events: none;
}

.work-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding-left: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  font-size: 15px;
  transform: translate(-50%, -50%);
  transition:
    background 450ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.work-video-toggle:hover .work-video-play {
  background: rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%) scale(1.04);
}

.work-video-meta {
  display: grid;
  gap: 3px;
  text-align: left;
}

.work-video-meta strong {
  font-size: 18px;
  line-height: 1.2;
}

.work-video-meta small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-page {
  padding-top: 0;
  padding-bottom: 10vh;
  overflow: hidden;
}

.project-headline {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: var(--header-height) 0 2vh;
  overflow: hidden;
  text-align: center;
}

.project-headline .mini-brand {
  margin-top: clamp(52px, 7vh, 82px);
}

.project-ticker-top {
  transform: none;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
}

.mini-brand img {
  width: 90px;
}

body.dark .mini-brand img {
  filter: invert(1);
}

.project-ticker {
  width: min(1140px, calc(100vw - 80px));
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(12px, 1.25vw, 20px);
  background: #fff;
  cursor: default;
  font-family:
    "PingFang SC",
    "Noto Sans SC",
    "Source Han Sans SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  font-synthesis: weight;
  text-rendering: geometricPrecision;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%);
}

.project-ticker-track {
  width: max-content;
  margin: 0;
  padding: 0;
  display: flex;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
  animation: project-ticker var(--aigc-marquee-duration, 24s) linear infinite;
  backface-visibility: hidden;
  will-change: transform;
}

.ticker-group {
  flex: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 52px);
  padding: 0 clamp(28px, 3.2vw, 52px) 0 0;
  white-space: nowrap;
}

.ticker-copy {
  flex: none;
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.aigc-marquee__item--outline {
  color: transparent;
  -webkit-text-stroke: clamp(1.2px, 0.12vw, 2px) #c9c9c9;
  text-stroke: clamp(1.2px, 0.12vw, 2px) #c9c9c9;
}

.aigc-marquee__item--solid {
  color: #090909;
  -webkit-text-stroke: 0;
}

@media (hover: hover) {
  .project-ticker:hover .project-ticker-track {
    animation-play-state: paused;
  }
}

@keyframes project-ticker {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.project-intro {
  max-width: 1140px;
  margin: 18px auto 10px;
  display: grid;
  grid-template-columns: 44.7% 55.3%;
  gap: 0;
  align-items: start;
}

.project-intro-copy {
  padding: 30px 20px 20px;
}

.project-intro-copy .category-label {
  margin-bottom: 0;
  color: var(--muted);
  font-family: "MiSans-Semibold", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
}

.project-intro h2 {
  margin-bottom: 2px;
  font-family: "MiSans-Semibold", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.project-intro-divider {
  display: block;
  width: 100px;
  height: 1px;
  margin: 30px auto;
  background: var(--line);
}

.project-intro p {
  margin-bottom: 0;
  font-family: "MiSans-Medium", sans-serif;
  font-size: 17px;
  line-height: 25.5px;
}

.project-intro img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
}

.media-button {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: zoom-in;
}

.media-button {
  width: calc(100% - 20px);
  margin: 20px 10px;
}

.media-button img {
  display: block;
  transition: transform 0.55s var(--ease);
}

.media-button:hover img {
  transform: scale(1.025);
}

.project-video {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.project-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #080808;
  object-fit: cover;
}

.media-heading {
  margin: 62px 0 20px;
  text-align: center;
}

.media-heading h2 {
  margin-bottom: 4px;
  font-family: "Arimo", "MiSans", sans-serif;
  font-size: 39.0625px;
  font-weight: 500;
  line-height: 46.875px;
}

.media-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.preview-grid {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.preview-grid button,
.storyboard-grid button,
.operation-gallery button {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: var(--mist);
  cursor: zoom-in;
}

.preview-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-grid button:hover img,
.storyboard-grid button:hover img,
.operation-gallery button:hover img {
  transform: scale(1.035);
}

.storyboard-grid {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--storyboard-columns, 3), 1fr);
  gap: 10px;
}

.storyboard-grid button {
  width: 100%;
}

.storyboard-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-thanks {
  margin: 36px auto 0;
  text-align: center;
}

.project-thanks h2 {
  margin-bottom: 4px;
  font-family: "Arimo", "MiSans", sans-serif;
  font-size: 39.0625px;
  font-weight: 500;
  line-height: 46.875px;
}

.project-thanks > p {
  margin-bottom: 40px;
  font-size: 16px;
}

.project-thanks .mini-brand {
  margin-top: 0;
}

.project-ticker-bottom {
  width: min(1140px, calc(100vw - 80px));
  margin: clamp(64px, 9vh, 110px) auto 0;
}

.project-pagination {
  width: min(1140px, 100%);
  margin: 58px auto 0;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.project-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.operation-page {
  padding-top: calc(var(--header-height) + 7vh);
}

.operation-hero {
  width: min(1140px, 100%);
  margin: 0 auto clamp(58px, 7vh, 88px);
  text-align: center;
}

.operation-hero > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.operation-hero h1 {
  margin: 0;
  font-family: Helvetica, Arial, "MiSans", sans-serif;
  font-size: clamp(58px, 5.2vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.operation-hero > strong {
  margin-top: 20px;
  display: block;
  font-family: "MiSans-Semibold", sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
}

.operation-intro {
  width: min(1140px, 100%);
  margin: 0 auto clamp(68px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(42px, 6vw, 88px);
}

.operation-intro-copy h2 {
  margin: 8px 0 22px;
  font-family: "MiSans-Semibold", sans-serif;
  font-size: clamp(32px, 3vw, 52px);
  font-weight: 500;
  line-height: 1.08;
}

.operation-intro-copy > p:last-child {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 17px;
  line-height: 1.75;
}

.operation-lead-media {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--mist);
  cursor: zoom-in;
}

.operation-lead-media img {
  width: 100%;
  max-height: 680px;
  display: block;
  object-fit: contain;
}

.operation-gallery {
  width: min(930px, 100%);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 14px;
}

.operation-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.about-page {
  padding: calc(var(--header-height) + 15vh) 0 8vh;
}

.cv-card {
  width: min(1290px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 20px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  border-radius: 32px;
  background: var(--card);
}

.portrait-column {
  position: sticky;
  top: 24px;
  align-self: start;
  margin-top: -60px;
}

.portrait {
  width: 100%;
  aspect-ratio: 1122 / 1402;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

.cv-content {
  min-width: 0;
  padding-top: 50px;
}

.intro h1 {
  margin-bottom: 20px;
  font-family: "Arimo", "MiSans", sans-serif;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}

.intro .meta {
  margin-bottom: 40px;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.5;
}

.intro .summary {
  margin-bottom: 0;
  font-family: "MiSans", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
}

.section-divider {
  width: 100%;
  height: 1px;
  margin: 52px 0 47px;
  background: var(--soft-line);
}

.section-divider.section-divider-spaced {
  margin-top: 58px;
}

.content-section h2 {
  margin-bottom: 47px;
  font-family: "MiSans", sans-serif;
  font-size: 32.25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 20px;
}

.ability {
  padding: 16px;
}

.tool-badge {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 13px;
  background: #111;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.tool-badge.badge-image {
  height: 50px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.tool-badge.badge-image img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.tool-badge.badge-image-tall,
.tool-badge.badge-image-tall img {
  height: 55px;
}

.tool-badge.badge-user-logo {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.045);
}

.tool-badge.badge-user-logo img {
  border-radius: inherit;
  object-fit: contain;
}

.badge-claude { background: #cc785c; }
.badge-codex { background: #111; }
.badge-capcut { background: #050505; }
.badge-davinci { background: linear-gradient(145deg, #2ab6db, #7556d8 55%, #ef5f5f); }
.badge-office { background: #d83b01; }
.badge-xiumi { background: #2f78ef; }
.skill-ai { background: #ff3025; }
.skill-video { background: #28c978; }
.skill-game { background: #7a58e8; }
.skill-community { background: #f39b22; }
.skill-matrix { background: #4b98f7; }
.skill-data { background: #17b6a4; }

.ability h3 {
  margin-bottom: 6px;
  font-family: "MiSans", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.ability p {
  margin-bottom: 0;
  font-family: "MiSans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.skills-grid .tool-badge {
  margin-bottom: 24px;
}

.site-footer {
  position: relative;
  z-index: 1;
  min-height: 620px;
  margin-top: -40px;
  padding: 122px 0 78px;
  background: var(--mist);
}

.footer-inner {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-cta {
  width: min(600px, 100%);
  margin: 0 auto 85px;
}

.contact-cta > p {
  margin-bottom: 18px;
  font-family: "MiSans", sans-serif;
  font-size: 72px;
  line-height: 1.2;
}

.contact-cta-row {
  display: grid;
  grid-template-columns: 56.84% 43.08%;
  align-items: center;
}

.contact-cta-row strong {
  font-family: "MiSans", sans-serif;
  font-size: 64px;
  line-height: 1.2;
}

.call-button {
  justify-self: start;
  display: inline-flex;
  width: 160px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: 999px;
  font-size: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.contact-grid article {
  position: relative;
  min-height: 85px;
  margin: 0 20px;
  padding-top: 20px;
  border-top: 1px solid currentColor;
}

.contact-grid span,
.contact-grid small {
  display: block;
}

.contact-grid span {
  margin-bottom: 5px;
  font-family: "MiSans", sans-serif;
  font-size: 18px;
}

.contact-grid small {
  color: var(--muted);
  font-size: 14px;
}

.contact-grid b {
  position: absolute;
  right: 0;
  bottom: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  font-size: 14px;
}

.footer-bottom {
  margin-top: 67px;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.back-to-top {
  visibility: hidden;
  position: fixed;
  z-index: 90;
  right: 30px;
  bottom: 30px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, var(--paper));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.search-modal {
  visibility: hidden;
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--page);
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}

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

.search-close {
  position: absolute;
  top: 28px;
  right: 34px;
  width: 44px;
  height: 44px;
}

.search-close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.search-inner {
  width: min(850px, 100%);
}

.search-kicker {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-inner label {
  display: block;
  margin-bottom: 12px;
  font-family: "MiSans", sans-serif;
  font-size: 18px;
}

.search-field-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid currentColor;
}

.search-field-row input {
  width: 100%;
  padding: 12px 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
}

.search-field-row input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}

.search-field-row svg {
  width: 38px;
  fill: currentColor;
}

.search-results {
  max-height: 260px;
  margin-top: 22px;
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  scrollbar-gutter: stable;
}

.search-result {
  padding: 12px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  align-items: start;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.search-result span,
.search-result small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.search-result small {
  color: var(--muted);
  text-align: right;
}

.lightbox {
  visibility: hidden;
  position: fixed;
  z-index: 600;
  inset: 0;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  place-items: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.94);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

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

.lightbox figure {
  max-width: min(1250px, 100%);
  max-height: 88vh;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  margin: auto;
  border-radius: 12px;
}

.lightbox figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 25px;
  color: #fff;
  font-size: 42px;
}

.lightbox-prev,
.lightbox-next {
  color: #fff !important;
  font-size: 28px;
}

.scroll-progress {
  display: none;
}

.page-transition {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 22%),
    #090a0c;
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition:
    clip-path 820ms cubic-bezier(0.76, 0, 0.24, 1),
    visibility 820ms;
}

.page-transition.is-active {
  transform: none;
  clip-path: inset(0 0 0 0);
}

.page-transition.is-leaving {
  transform: none;
  clip-path: inset(0 0 100% 0);
}

.transition-mark {
  width: 94px;
  filter: invert(1);
  transform: translateY(14px);
  transition:
    opacity 420ms 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition.is-active .transition-mark {
  transform: translateY(0);
}

.site-header {
  transition:
    color 350ms cubic-bezier(0.16, 1, 0.3, 1),
    background 350ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-navigating .site-header {
  z-index: 1001;
}

.brand img {
  transition:
    filter 300ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover img {
  transform: translate3d(3px, -1px, 0);
}

.hero-slide {
  z-index: 0;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition:
    clip-path 1300ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity 1000ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 1300ms;
}

.home-view[data-direction="previous"] .hero-slide {
  clip-path: inset(0 100% 0 0);
}

.hero-slide.is-active,
.hero-slide.is-preparing,
.hero-slide.is-exiting {
  visibility: visible;
}

.hero-slide.is-active {
  z-index: 3;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.hero-slide.is-preparing {
  z-index: 4;
  opacity: 1;
}

.hero-slide.is-exiting {
  z-index: 2;
  opacity: 0.42;
  clip-path: inset(0 0 0 0);
}

.hero-media {
  position: absolute;
  inset: -2%;
  transform: translate3d(0, 0, 0) scale(1.025);
  transform-origin: center;
  will-change: transform;
}

.hero-slide video,
.hero-slide .hero-poster {
  transform: scale(1.055);
  transition: transform 8s linear;
}

.hero-slide.is-active video,
.hero-slide.is-active .hero-poster {
  transform: scale(1);
}

.hero-slide::after {
  z-index: 1;
}

.hero-title {
  overflow: hidden;
  padding-bottom: 0.07em;
}

.hero-slide .hero-title {
  opacity: 1;
  transform: none;
}

.hero-title-char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 112%, 0) rotate(2deg);
  transform-origin: left bottom;
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1080ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(120ms + var(--char-index) * 34ms);
}

#app.is-ready .hero-slide.is-active .hero-title-char {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.hero-slide .hero-eyebrow,
.hero-slide .hero-description,
.hero-slide .hero-cta {
  filter: blur(5px);
  transform: translate3d(0, 18px, 0);
}

#app.is-ready .hero-slide.is-active .hero-eyebrow,
#app.is-ready .hero-slide.is-active .hero-description,
#app.is-ready .hero-slide.is-active .hero-cta {
  filter: blur(0);
  transform: translate3d(0, 0, 0);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta,
.hero-arrow,
.call-button {
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    background 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-progress button::after {
  transform: scaleX(0);
  transform-origin: left center;
  width: 100%;
}

.hero-progress button.is-active::after {
  width: 100%;
  transform: scaleX(1);
  transition: transform 5s linear;
}

.portfolio-hero {
  --spot-x: 50%;
  --spot-y: 50%;
  --spot-shift-x: 0px;
  --spot-shift-y: 0px;
  isolation: isolate;
}

.portfolio-hero::before {
  z-index: 0;
  transform: none;
  transition: none;
}

.portfolio-hero::after {
  display: none;
}

.portfolio-hero-content {
  will-change: transform;
}

.project-card,
.work-card,
.portrait {
  transform-style: preserve-3d;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 450ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.project-card,
.work-card {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.035),
    0 12px 30px -22px rgba(0, 0, 0, 0.45);
}

.project-card:hover,
.work-card:hover {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.055),
    0 30px 60px -30px rgba(0, 0, 0, 0.52);
}

.card-arrow {
  transition:
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
    background 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .card-arrow {
  transform: translateX(0) rotate(8deg);
}

.media-button img,
.operation-lead-media img,
.preview-grid img,
.storyboard-grid img,
.operation-gallery img {
  transition:
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.media-button:hover img,
.operation-lead-media:hover img,
.preview-grid button:hover img,
.storyboard-grid button:hover img,
.operation-gallery button:hover img {
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.035);
}

.portrait-column::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  content: "";
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.tool-badge {
  transition:
    filter 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ability:hover .tool-badge {
  filter: brightness(1.06);
}

.search-modal {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 620ms cubic-bezier(0.76, 0, 0.24, 1),
    visibility 620ms;
}

.search-modal.is-open {
  clip-path: inset(0 0 0 0);
}

.search-inner {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 420ms 180ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms 180ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.is-open .search-inner {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.search-result {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    opacity 380ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(220ms + var(--result-index) * 45ms);
}

.search-modal.is-open .search-result {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.search-modal.is-open .search-result:hover {
  transform: translate3d(8px, 0, 0);
}

.lightbox figure {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 18px, 0) scale(0.985);
  transition:
    opacity 420ms 80ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms 80ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms 60ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open figure {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.lightbox.is-switching figure {
  opacity: 0;
  filter: blur(5px);
  transform: translate3d(0, 7px, 0) scale(0.992);
}

.reveal {
  opacity: 0;
  filter: blur(2px);
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-title {
  filter: blur(1px);
  transform: translate3d(0, 28px, 0);
}

.reveal-media {
  opacity: 1;
  filter: none;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 1150ms cubic-bezier(0.76, 0, 0.24, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-media > img,
.reveal-media > video,
.reveal-media > button > img {
  transform: scale(1.04);
  transition: transform 1350ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.reveal-media.is-revealed {
  clip-path: inset(0 0 0 0);
}

.reveal-media.is-revealed > img,
.reveal-media.is-revealed > video,
.reveal-media.is-revealed > button > img {
  transform: scale(1);
}

.reveal-media.is-revealed:hover > img,
.reveal-media.is-revealed:hover > button > img {
  transform: scale(1.035);
}

.project-card.reveal-media.is-revealed:hover > img,
.work-card.reveal-media.is-revealed:hover > img {
  transform: scale(1.035);
}

@media (max-width: 1024px) {
  .header-inner {
    width: calc(100% - 24px);
    padding: 0;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .menu-trigger {
    display: flex;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .project-card:last-child {
    grid-column: 1 / -1;
  }

  .fragment-stage,
  .fragment-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card:last-child,
  .fragment-video-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .fragment-image-grid {
    column-count: 2;
  }

  .cv-card {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 30px));
  }

  .portrait-column {
    position: relative;
    top: auto;
  }

  .cv-content {
    padding-top: 78px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 80px;
  }

  .brand,
  .brand img {
    width: 54px;
  }

  .header-actions {
    gap: 6px;
  }

  .menu-trigger {
    width: 40px;
    padding-left: 8px;
  }

  .menu-trigger span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero-content {
    width: calc(100% - 30px);
    justify-content: flex-end;
    padding: 0 0 160px;
  }

  .hero-title {
    margin-bottom: 16px;
    font-size: clamp(52px, 16vw, 76px);
    line-height: 0.95;
  }

  .hero-description {
    max-width: 100%;
    font-size: 14px;
  }

  .hero-controls {
    bottom: 24px;
    width: calc(100% - 26px);
    gap: 14px;
  }

  .paper-page {
    border-radius: 0 0 28px 28px;
  }

  .page-container {
    width: calc(100% - 30px);
  }

  .portfolio-hero {
    height: 45vh;
    min-height: 300px;
    max-height: 360px;
    margin-top: 8vh;
    border-radius: 20px;
  }

  .portfolio-hero h1 {
    padding: 0 12px;
    margin-bottom: 16px;
    font-size: clamp(30px, 8.8vw, 42px);
    line-height: 1.04;
  }

  .portfolio-hero p {
    font-size: 16px;
  }

  .outline-title {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
  }

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

  .project-card,
  .project-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .work-section {
    padding-top: 75px;
  }

  .fragment-stage,
  .fragment-video-grid {
    grid-template-columns: 1fr;
  }

  .profile-stage {
    margin-bottom: 68px;
  }

  .profile-card:last-child,
  .fragment-video-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .fragment-image-grid {
    column-count: 1;
  }

  .fragment-section-heading {
    margin-bottom: 32px;
  }

  .fragment-section-heading h3 {
    font-size: 26px;
  }

  .fragment-group-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .project-headline {
    padding-top: var(--header-height);
  }

  .project-ticker {
    width: min(100%, calc(100vw - 40px));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  }

  .ticker-copy {
    font-size: clamp(36px, 11.5vw, 48px);
  }

  .ticker-group {
    gap: 24px;
    padding-right: 24px;
  }

  .mini-brand {
    gap: 10px;
    font-size: 30px;
  }

  .mini-brand img {
    width: 60px;
  }

  .project-headline .mini-brand {
    margin-top: 42px;
  }

  .project-intro {
    margin-top: 3vh;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .operation-page {
    padding-top: calc(var(--header-height) + 4vh);
  }

  .operation-hero {
    margin-bottom: 48px;
  }

  .operation-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .project-video,
  .preview-grid,
  .storyboard-grid,
  .project-pagination,
  .operation-gallery {
    width: 100%;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .preview-grid img {
    height: auto;
  }

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

  .media-heading h2,
  .project-thanks h2 {
    font-size: 30px;
  }

  .operation-gallery {
    grid-template-columns: 1fr;
  }

  .search-result {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .search-result small {
    text-align: left;
  }

  .about-page {
    padding: calc(var(--header-height) + 14.5vh) 0 8vh;
  }

  .cv-card {
    width: calc(100% - 30px);
    padding: 0 20px 52px;
  }

  .portrait-column {
    margin-top: -48px;
  }

  .intro h1 {
    font-size: clamp(25px, 7.2vw, 32px);
  }

  .section-divider {
    margin: 53px 0 47px;
  }

  .content-section h2 {
    margin-bottom: 45px;
    font-size: 28px;
  }

  .ability-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ability {
    padding: 0;
  }

  .ability h3 {
    font-size: 21px;
    line-height: 1.45;
  }

  .ability p {
    font-size: 16px;
  }

  .skills-grid {
    gap: 57px;
  }

  .site-footer {
    margin-top: -28px;
    padding: 120px 0 50px;
  }

  .footer-inner {
    width: calc(100% - 30px);
  }

  .contact-cta {
    margin-bottom: 48px;
  }

  .contact-cta > p,
  .contact-cta-row strong {
    font-size: 32px;
    text-align: center;
  }

  .contact-cta-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
  }

  .call-button {
    justify-self: center;
  }

  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid article {
    min-height: 50px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .contact-grid span,
  .contact-grid small {
    display: none;
  }

  .contact-grid b {
    position: static;
    margin: 0 auto;
  }

  .footer-bottom {
    margin-top: 70px;
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .back-to-top {
    right: 15px;
    bottom: 15px;
  }

  .lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    padding: 15px 5px;
  }
}

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

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

  .reveal,
  .reveal-media,
  .hero-title-char,
  .search-inner,
  .lightbox figure {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
  }

  .project-ticker-track {
    animation-duration: var(--aigc-marquee-duration, 24s) !important;
  }
}

