/* ==========================================================================
   于雷 · 运营作品集 — CK-design-inspired cinematic portfolio
   Typography: Inter (Latin) + HarmonyOS Sans SC (display) + MiSans (body)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HarmonyOS Sans SC";
  src: url("../fonts/HarmonyOS-Sans-SC-Bold-subset.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Regular-subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f2ee;
  --bg-soft: #efede8;
  --white: #fbfaf8;
  --dark: #0a0a0a;
  --dark-2: #111110;
  --ink: #111110;
  --muted: #77736c;
  --muted-2: #9b968e;
  --accent: #f0561c;
  --accent-soft: #ff8a5c;
  --line: rgba(17, 17, 16, 0.14);
  --line-strong: rgba(17, 17, 16, 0.28);
  --line-light: rgba(255, 255, 255, 0.16);
  --font-display: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(20px, 4.2vw, 72px);
  --header-h: 84px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: #fff;
  color: #111;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

section {
  position: relative;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--pad);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.site-header[data-theme="dark"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.site-header[data-theme="dark"].is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header[data-theme="light"] {
  color: var(--ink);
  background: rgba(244, 242, 238, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

body.menu-open .site-header {
  color: #fff;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-zh {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-en {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.brand-en em {
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.16em;
  opacity: 0.6;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 42px);
  justify-self: center;
}

.main-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-bottom: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.main-nav a span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  right: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  justify-self: end;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: border-color 0.3s, color 0.3s;
}

.site-header[data-theme="light"] .tool-link {
  border-bottom-color: rgba(17, 17, 16, 0.28);
}

.tool-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s, color 0.3s;
}

.tool-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.tool-icon:hover {
  opacity: 1;
  color: var(--accent);
}

.menu-trigger {
  display: none;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.menu-lines i {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s;
}

.menu-trigger:hover .menu-lines i:first-child {
  transform: translateX(4px);
}

/* ==========================================================================
   HERO / SLIDER
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #070707;
  color: #fff;
}

@supports (height: 100svh) {
  .hero {
    height: 100svh;
  }
}

.hero-slider {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.95s var(--ease);
}

.slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.slide-bg img,
.slide-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-bg video {
  z-index: 1;
  filter: brightness(0.42) saturate(0.8) contrast(1.02) blur(1.5px);
  transform: scale(1.03);
}

.slide-fallback {
  z-index: 0;
}

.slide-bg--art img {
  filter: brightness(0.72) contrast(1.02) saturate(0.9);
  transform: scale(1.03);
}

.slide.is-active .slide-bg--art img {
  animation: art-drift 26s ease-out both;
}

@keyframes art-drift {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

/* 极细网格，呼应参考图里的图纸/拼贴感 */
.slide-bg--art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 14.2857% 100%, 100% 25%;
  opacity: 0.55;
}

/* 不同作品给艺术图不同的裁切重心 */
.slide:nth-child(2) .slide-bg--art img { object-position: 54% 44%; }
.slide:nth-child(3) .slide-bg--art img { object-position: 52% 42%; }
.slide:nth-child(4) .slide-bg--art img { object-position: 52% 38%; filter: brightness(0.86) contrast(1.03) saturate(0.92); }
.slide:nth-child(5) .slide-bg--art img { object-position: 50% 36%; filter: brightness(0.9) contrast(1.02) saturate(0.9); }
.slide:nth-child(6) .slide-bg--art img { object-position: 54% 46%; }

.slide-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.64) 54%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.08) 32%, rgba(0, 0, 0, 0.9) 100%);
}

.slide-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 1000px;
  padding: calc(var(--header-h) + 36px) var(--pad) clamp(120px, 16vh, 170px);
}

.slide-content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0, 1);
}

.slide.is-active .slide-content > * {
  opacity: 1;
  transform: none;
}

.slide.is-active .slide-content > *:nth-child(1) { transition-delay: 0.12s; }
.slide.is-active .slide-content > *:nth-child(2) { transition-delay: 0.2s; }
.slide.is-active .slide-content > *:nth-child(3) { transition-delay: 0.28s; }
.slide.is-active .slide-content > *:nth-child(4) { transition-delay: 0.36s; }
.slide.is-active .slide-content > *:nth-child(5) { transition-delay: 0.44s; }
.slide.is-active .slide-content > *:nth-child(6) { transition-delay: 0.52s; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker--light {
  color: rgba(255, 255, 255, 0.62);
}

.kicker--light span {
  margin-left: 4px;
  opacity: 0.62;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 86, 28, 0.16);
}

.accent {
  color: var(--accent);
}

.slide-title {
  margin: 20px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(58px, 9.4vw, 138px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.slide-title--work {
  font-size: clamp(56px, 8.4vw, 124px);
}

.slide-lede {
  max-width: 580px;
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.76);
}

.slide-meta {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.slide-content > .link-underline {
  margin-top: 22px;
}

.slide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 38px;
  margin-top: 32px;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: color 0.3s, border-color 0.3s;
}

.link-underline span {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.3s var(--ease);
}

.link-underline:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.link-underline:hover span {
  transform: translate(3px, 3px);
}

.link-underline--dark {
  color: var(--ink);
  border-bottom-color: rgba(17, 17, 16, 0.3);
}

.link-underline--dark:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* platforms marquee */
.platforms {
  max-width: 590px;
  margin-top: 38px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.platforms-track {
  display: flex;
  width: max-content;
  animation: marquee 72s linear infinite;
}

.platforms:hover .platforms-track {
  animation-play-state: paused;
}

.platforms-group {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 18px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.platforms-group i {
  font-style: normal;
  color: var(--accent);
  opacity: 0.8;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* work slide media card */
.slide-media {
  position: absolute;
  top: 50%;
  right: clamp(40px, 8vw, 140px);
  z-index: 3;
  width: clamp(210px, 21vw, 320px);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #111;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%);
  transition: box-shadow 0.4s, border-color 0.4s;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.slide-media:hover img {
  transform: scale(1.05);
}

.slide-media:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.slide-media-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  font-size: 18px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.slide-media:hover .slide-media-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* slider UI */
.slider-ui {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(24px, 4vh, 44px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.arrow-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-btn:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.slider-progress {
  position: absolute;
  left: 50%;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
}

.slider-cur {
  color: #fff;
}

.slider-total {
  color: rgba(255, 255, 255, 0.4);
}

.slider-line {
  position: relative;
  display: block;
  width: clamp(90px, 14vw, 190px);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
}

.slider-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16.666%;
  background: #fff;
  transition: width 0.6s var(--ease);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.scroll-hint i {
  font-style: normal;
  font-size: 14px;
  color: #fff;
  animation: scroll-bounce 2.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* ==========================================================================
   Works
   ========================================================================== */
.section--light {
  background: var(--bg);
  color: var(--ink);
}

.works {
  padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}

.works-banner {
  position: relative;
  height: clamp(320px, 50vh, 520px);
  overflow: hidden;
  border-radius: 24px;
  background: #111;
}

.works-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: brightness(0.62) contrast(1.02) saturate(0.92);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease);
}

.works-banner:hover .works-banner-bg {
  transform: scale(1.055);
}

.works-banner-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
}

.works-banner-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 28px;
  color: #fff;
  text-align: center;
}

.banner-title {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6.2vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.banner-title span {
  font-weight: 700;
}

.banner-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.66);
}

.works-head {
  margin: clamp(70px, 9vw, 120px) 0 clamp(40px, 5vw, 70px);
  text-align: center;
}

.works-head .kicker {
  justify-content: center;
}

.outline-title {
  margin-top: 14px;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.6vw, 132px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1.3px rgba(17, 17, 16, 0.72);
}

@supports not (-webkit-text-stroke: 1px black) {
  .outline-title {
    color: var(--ink);
  }
}

.works-sub {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 44px) clamp(16px, 2vw, 28px);
}

.work-tile:nth-child(1),
.work-tile:nth-child(2),
.work-tile:nth-child(3) {
  grid-column: span 2;
}

.work-tile:nth-child(4),
.work-tile:nth-child(5) {
  grid-column: span 3;
}

.work-tile:nth-child(n+4) .tile-media {
  aspect-ratio: 16 / 10;
}

.work-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  text-align: left;
}

.tile-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: #111;
  isolation: isolate;
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.work-tile:hover .tile-media img {
  transform: scale(1.045);
}

.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 32%, transparent 62%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.tile-no,
.tile-dur {
  position: absolute;
  top: 13px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.94);
}

.tile-no { left: 13px; }
.tile-dur { right: 13px; }

.tile-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.work-tile:hover .tile-play,
.work-tile:focus-visible .tile-play {
  opacity: 1;
  transform: none;
}

.tile-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tile-cat {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--accent);
}

.tile-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tile-role {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.works-footnote {
  margin-top: clamp(40px, 5vw, 70px);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: clamp(70px, 10vw, 140px) 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: #e9e5dd;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.12) contrast(1.04);
  mix-blend-mode: multiply;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.about-photo figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.about-name {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 104px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.about-name span {
  margin-left: 12px;
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  vertical-align: middle;
}

.about-meta {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.about-lead {
  max-width: 720px;
  margin-bottom: 38px;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.9;
  color: #35322d;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.5vw, 56px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about-col h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.about-col h3 span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-col li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.82;
  color: #5f5b55;
}

.about-col li:last-child {
  margin-bottom: 0;
}

.about-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.about-col strong {
  color: var(--ink);
  font-weight: 600;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat strong span {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--accent);
}

.stat > span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.stat em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.about-body > .link-underline {
  margin-top: 38px;
}

/* ==========================================================================
   Resume
   ========================================================================== */
.resume {
  padding: clamp(70px, 9vw, 130px) 0;
  background: var(--bg);
}

.resume-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 54px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.resume-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.resume-note {
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}

.timeline-item {
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.tl-period {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tl-org {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tl-role {
  margin: 8px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tl-list li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #5f5b55;
}

.tl-list li:last-child {
  margin-bottom: 0;
}

.tl-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted-2);
}

.tl-list strong {
  color: var(--ink);
  font-weight: 600;
}

.resume-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.resume-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(17, 17, 16, 0.14);
  font-size: 11px;
}

.resume-meta dt {
  letter-spacing: 0.04em;
  color: var(--muted);
}

.resume-meta dd {
  text-align: right;
  color: var(--ink);
}

.resume-meta a {
  border-bottom: 1px solid var(--line);
}

.resume-meta a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.resume-side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resume-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(20, 18, 14, 0.12);
}

.resume-card img {
  width: 100%;
  height: auto;
  transition: transform 0.9s var(--ease);
}

.resume-card:hover img {
  transform: scale(1.03);
}

.resume-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
  background: #080808;
  color: #fff;
}

@supports (min-height: 92svh) {
  .contact {
    min-height: 92svh;
  }
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 38%;
  filter: brightness(0.48) contrast(1.02) saturate(0.9);
  transform: scale(1.03);
}

.contact-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5) 62%, rgba(0, 0, 0, 0.7)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
}

.contact-inner {
  padding-top: calc(var(--header-h) + 70px);
  padding-bottom: clamp(80px, 12vh, 140px);
}

.contact-title {
  margin: 20px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 150px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.contact-title em {
  font-style: normal;
  color: var(--accent);
}

.contact-lede {
  margin-bottom: 36px;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.64);
}

.contact-mail {
  display: inline-block;
  margin-bottom: 30px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.3s, border-color 0.3s;
}

.contact-mail span {
  margin-left: 6px;
  color: var(--accent);
}

.contact-mail:hover {
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.62);
}

.contact-row a,
.contact-row button {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: inherit;
  transition: color 0.3s, border-color 0.3s;
}

.contact-row a:hover,
.contact-row button:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.contact-side {
  position: absolute;
  right: 4px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(24px, 4vw, 52px);
  background: #0a0a0a;
  color: #fff;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.footer-brand span {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.44);
}

.footer-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  padding-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav a {
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.52);
}

.footer-actions a {
  transition: color 0.3s;
}

.footer-actions a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 0;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.34);
}

.back-to-top {
  color: rgba(255, 255, 255, 0.52);
  transition: color 0.3s;
}

.back-to-top:hover {
  color: #fff;
}

.footer-giant {
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: clamp(110px, 19vw, 270px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

@supports not (-webkit-text-stroke: 1px black) {
  .footer-giant {
    color: rgba(255, 255, 255, 0.08);
  }
}

/* ==========================================================================
   Mobile menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 8px) var(--pad) max(28px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: #0a0a0a;
  color: #fff;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.mobile-menu-brand em {
  font-style: normal;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
}

.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.menu-close span {
  font-size: 18px;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 7vh;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav .num {
  width: 22px;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.mobile-nav .label {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mobile-nav em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.mobile-mail {
  color: #fff;
}

.mobile-cv {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Video modal / toast
   ========================================================================== */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 48px);
}

.player-modal[hidden] {
  display: none;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.player-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: 92vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #111;
  color: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-cat {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.player-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.player-close span {
  font-size: 16px;
  line-height: 1;
}

.player-video-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  background: #000;
}

#player-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.player-info {
  padding: 16px 22px 22px;
}

.player-info h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.player-info p {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  padding: 11px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

#works,
#about,
#resume,
#contact {
  scroll-margin-top: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .main-nav {
    gap: 20px;
  }

  .slide-media {
    right: clamp(24px, 5vw, 60px);
    width: clamp(200px, 20vw, 280px);
  }

  .about-grid {
    gap: clamp(30px, 5vw, 64px);
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .menu-trigger {
    display: flex;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-tools {
    gap: 14px;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-tile:nth-child(1),
  .work-tile:nth-child(2),
  .work-tile:nth-child(3),
  .work-tile:nth-child(4),
  .work-tile:nth-child(5) {
    grid-column: auto;
  }

  .work-tile:nth-child(n+4) .tile-media {
    aspect-ratio: 4 / 5;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .about-photo {
    max-width: 520px;
    aspect-ratio: 4 / 5;
  }

  .resume-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .resume-side {
    position: static;
    max-width: 560px;
  }

  .slide-media {
    width: clamp(180px, 20vw, 250px);
    right: clamp(18px, 4vw, 44px);
  }

  .slide-content {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    height: var(--header-h);
  }

  .brand-zh {
    font-size: 21px;
  }

  .brand-en {
    font-size: 7px;
    letter-spacing: 0.16em;
  }

  .brand {
    gap: 9px;
  }

  .tool-link {
    display: none;
  }

  .tool-icon {
    width: 30px;
    height: 30px;
  }

  .header-tools {
    gap: 12px;
  }

  .menu-trigger {
    gap: 8px;
  }

  .menu-trigger span:first-child {
    display: inline;
  }

  .menu-lines {
    width: 19px;
  }

  .menu-lines i {
    width: 19px;
  }

  .hero {
    min-height: 640px;
  }

  .slide-content {
    align-items: center;
    max-width: none;
    padding: calc(var(--header-h) + 22px) var(--pad) clamp(150px, 26vh, 240px);
    text-align: center;
  }

  .kicker {
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .slide-title,
  .slide-title--work {
    margin: 14px 0 18px;
    font-size: clamp(48px, 15.4vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .slide-lede {
    max-width: 348px;
    font-size: 13.5px;
    line-height: 1.8;
  }

  .slide-meta {
    margin-top: 12px;
    font-size: 9.5px;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .slide-links {
    justify-content: center;
    gap: 16px 26px;
    margin-top: 24px;
  }

  .link-underline {
    font-size: 12px;
  }

  .platforms {
    max-width: 300px;
    margin-top: 28px;
  }

  .platforms-group {
    gap: 12px;
    padding-right: 12px;
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .slide-bg--art img {
    filter: brightness(0.6) contrast(1.02) saturate(0.88);
    transform: scale(1.02);
  }

  .slide.is-active .slide-bg--art img {
    animation: none;
  }

  .slide-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.52) 38%, rgba(0, 0, 0, 0.92) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2));
  }

  .slide-media {
    display: none;
  }

  .slider-ui {
    bottom: 18px;
  }

  .slider-arrows {
    gap: 8px;
  }

  .arrow-btn {
    width: 40px;
    height: 40px;
  }

  .arrow-btn svg {
    width: 16px;
    height: 16px;
  }

  .slider-progress {
    bottom: 14px;
    gap: 10px;
    font-size: 9px;
  }

  .slider-line {
    width: 80px;
  }

  .scroll-hint {
    display: none;
  }

  .works {
    padding-top: 56px;
  }

  .works-banner {
    height: 340px;
    border-radius: 18px;
  }

  .banner-title {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.05;
  }

  .banner-title span {
    display: block;
    margin-top: 6px;
  }

  .banner-sub {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .works-head {
    margin: 60px 0 34px;
  }

  .outline-title {
    font-size: clamp(38px, 12.4vw, 64px);
    white-space: normal;
    -webkit-text-stroke-width: 1px;
  }

  .works-sub {
    margin-top: 12px;
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .work-tile:nth-child(n) {
    grid-column: auto;
  }

  .work-tile:nth-child(n+4) .tile-media {
    aspect-ratio: 4 / 5;
  }

  .tile-media {
    aspect-ratio: 4 / 5;
  }

  .tile-play {
    opacity: 1;
    transform: none;
  }

  .works-footnote {
    margin-top: 36px;
    font-size: 10px;
    line-height: 1.7;
  }

  .about {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .about-photo {
    max-width: none;
    border-radius: 18px;
  }

  .about-name {
    font-size: clamp(46px, 13vw, 72px);
  }

  .about-name span {
    margin-left: 8px;
    font-size: 0.32em;
  }

  .about-meta {
    margin-bottom: 22px;
    font-size: 10.5px;
    letter-spacing: 0.03em;
  }

  .about-lead {
    margin-bottom: 30px;
    font-size: 14.5px;
    line-height: 1.85;
  }

  .about-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 26px;
  }

  .about-col li {
    font-size: 12px;
    line-height: 1.8;
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 0;
    margin-top: 30px;
    padding-top: 22px;
  }

  .stat {
    padding-left: 14px;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .stat strong {
    font-size: clamp(27px, 8vw, 36px);
  }

  .resume {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .resume-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 36px;
    padding-bottom: 22px;
  }

  .resume-note {
    text-align: left;
    font-size: 10.5px;
  }

  .timeline-item {
    padding: 24px 0 28px;
  }

  .tl-role {
    margin-bottom: 14px;
    font-size: clamp(26px, 7.5vw, 34px);
  }

  .tl-list li {
    font-size: 12px;
    line-height: 1.8;
  }

  .resume-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .resume-side {
    max-width: none;
  }

  .contact {
    min-height: 86vh;
  }

  .contact-inner {
    padding-top: calc(var(--header-h) + 54px);
    padding-bottom: 64px;
  }

  .contact-title {
    margin: 14px 0 20px;
    font-size: clamp(48px, 14.6vw, 84px);
  }

  .contact-lede {
    margin-bottom: 26px;
    font-size: 13px;
    line-height: 1.85;
  }

  .contact-mail {
    margin-bottom: 26px;
    font-size: clamp(20px, 6vw, 28px);
    word-break: break-all;
  }

  .contact-row {
    gap: 14px 22px;
    font-size: 11px;
  }

  .contact-side {
    display: none;
  }

  .site-footer {
    padding-top: 48px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-bottom: 30px;
  }

  .footer-actions {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    font-size: 9px;
  }

  .footer-giant {
    margin-top: 18px;
    font-size: clamp(96px, 34vw, 160px);
  }

  .mobile-menu {
    padding-top: calc(var(--header-h) + 4px);
  }

  .mobile-nav {
    margin-top: 4vh;
  }

  .mobile-nav a {
    padding: 14px 0;
  }

  .player-modal {
    padding: 0;
  }

  .player-panel {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .player-bar {
    padding: 14px 18px;
  }

  #player-video {
    max-height: 64vh;
  }

  .player-info {
    padding: 14px 18px 20px;
  }

  .player-info h3 {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .slide-title,
  .slide-title--work {
    font-size: clamp(42px, 14.4vw, 58px);
  }

  .slide-links {
    gap: 12px 20px;
  }

  .platforms {
    max-width: 260px;
  }

  .outline-title {
    font-size: 40px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .slide-content > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-track,
  .slider-line i,
  .platforms-track,
  .slide-bg img,
  .slide-bg video,
  .scroll-hint i {
    animation: none !important;
    transition: none !important;
  }

  .works-banner:hover .works-banner-bg,
  .work-tile:hover .tile-media img,
  .resume-card:hover img,
  .slide-media:hover img {
    transform: none !important;
  }
}
