﻿:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: #101114;
  --text: #f4f4f5;
  --muted: #a7abb4;
  --line: rgba(255, 255, 255, 0.13);
  --glow: rgba(116, 154, 255, 0.38);
  --silver: #d9dde4;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 8%, rgba(96, 135, 255, 0.17), transparent 30rem),
    radial-gradient(circle at 12% 58%, rgba(255, 255, 255, 0.08), transparent 24rem),
    #050506;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 4vw, 54px);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.76), rgba(5, 5, 6, 0));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.detail-header {
  background: rgba(5, 5, 6, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 26px var(--glow);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px clamp(20px, 6vw, 76px) 46px;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  transform: scale(1.03);
  animation: slowDrift 16s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 5, 6, 0.98), rgba(5, 5, 6, 0.54) 48%, rgba(5, 5, 6, 0.12)),
    linear-gradient(to right, rgba(5, 5, 6, 0.84), rgba(5, 5, 6, 0.18));
}

.hero-content,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  max-width: 940px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.08;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 34px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.primary {
  background: #f5f5f7;
  color: #050506;
}

.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 70px;
}

.hero-meta span,
.skill-cloud span,
.filter-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-meta span,
.skill-cloud span {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  max-width: 600px;
  font-size: 17px;
}

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

.studio-note,
.service-item,
.contact-panel,
.highlight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.studio-note {
  min-height: 220px;
  padding: 28px;
}

.studio-note span,
.service-item span {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--silver);
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.9);
  color: #050506;
}

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

.work-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  isolation: isolate;
}

.work-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 500ms ease, filter 500ms ease;
}

.work-card:hover img {
  transform: scale(1.045);
  filter: brightness(0.82);
}

.work-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0));
}

.work-overlay span {
  color: var(--silver);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-overlay p {
  max-width: 560px;
  margin-bottom: 0;
}

.about-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(26px, 6vw, 76px);
}

.about-visual {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-copy p {
  font-size: 17px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 80px 0.8fr 1.2fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  margin-top: 12px;
}

.service-item span {
  margin-bottom: 0;
}

.service-item p {
  margin-bottom: 0;
}

.contact-section {
  padding-top: 40px;
}

.contact-panel {
  padding: clamp(30px, 6vw, 72px);
  background:
    radial-gradient(circle at 80% 30%, rgba(116, 154, 255, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-links a,
.contact-links span {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.project-page {
  padding-top: 74px;
}

.project-hero {
  position: relative;
  min-height: 74vh;
  min-height: 74svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 76px) 54px;
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 6, 0.98), rgba(5, 5, 6, 0.2));
}

.project-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.project-hero-copy p:not(.eyebrow) {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.project-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.project-summary p {
  font-size: 17px;
}

.highlight-panel {
  padding: 28px;
}

.highlight-panel ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.highlight-panel li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.8);
}

.media-block {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: center;
}

.media-block img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    min-height: 92vh;
    min-height: 92svh;
  }

  .studio-grid,
  .work-grid,
  .about-section,
  .project-content,
  .media-block {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card img {
    min-height: 360px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .studio-note span,
  .service-item span {
    margin-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
  }

  .brand span:last-child {
    max-width: 110px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding-inline: 18px;
  }

  .section {
    width: min(100% - 32px, var(--max));
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .work-overlay {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.project-media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #090a0c;
  min-height: 320px;
}

.project-video,
.project-fallback-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.project-video {
  display: block;
}

.project-fallback-image,
.media-placeholder {
  display: none;
}

.project-media-frame.is-missing-video .project-video {
  display: none;
}

.project-media-frame.is-missing-video .project-fallback-image,
.project-media-frame.is-missing-video .media-placeholder {
  display: block;
}

.media-placeholder {
  position: absolute;
  left: 24px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 48px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.media-placeholder span {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.resume-preview {
  object-position: top center;
  background: #f5f5f5;
}

.media-direct-link {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@supports not (aspect-ratio: 16 / 9) {
  .project-video,
  .project-fallback-image {
    height: min(56vw, 560px);
  }
}


.not-found-section {
  min-height: 70vh;
  display: grid;
  align-content: center;
  max-width: 780px;
}

.not-found-section p:not(.eyebrow) {
  max-width: 560px;
  font-size: 18px;
}
