:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0a0a0a;
  --panel-2: #101010;
  --text: #f7f7f5;
  --soft: #c7c7c2;
  --muted: #85857f;
  --line: #2d2d2a;
  --cyan: #6ce5d5;
  --pink: #e997d6;
  --amber: #e8b36e;
  --green: #b7e46e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
video { background: #111; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 22px clamp(22px, 5vw, 80px); background: linear-gradient(#030303f2, #03030300); pointer-events: none; }
.site-header a { pointer-events: auto; }
.brand { flex: 0 0 auto; font-size: .76rem; letter-spacing: .16em; color: var(--soft); }
nav { display: flex; gap: 28px; font-size: .85rem; color: var(--soft); }
nav a:hover, nav a:focus-visible { color: var(--cyan); }

.hero { min-height: 100vh; position: relative; padding: 13vh clamp(24px, 6vw, 96px) 7vh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: 1fr auto; gap: 44px 70px; align-items: center; background: #030303 url("./assets/iridescent_bg.png") center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(circle at 64% 41%, rgba(0,0,0,0) 0 20%, rgba(0,0,0,.32) 48%, rgba(0,0,0,.76) 100%); }
.eyebrow { margin: 0 0 26px; color: var(--muted); font-size: .76rem; letter-spacing: .14em; }
h1 { max-width: 900px; margin: 0; font-size: clamp(3.7rem, 7.2vw, 8rem); line-height: .98; letter-spacing: -.055em; }
.hero-lede { margin: 34px 0 0; font-size: clamp(1rem, 1.8vw, 1.45rem); color: var(--soft); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-tags span { border: 1px solid #ffffff24; border-radius: 99px; padding: 8px 13px; color: var(--soft); font-size: .86rem; backdrop-filter: blur(12px); }
.identity-card { align-self: start; justify-self: end; width: min(100%, 250px); border-top: 1px solid #ffffff38; padding-top: 15px; }
.identity-card img { width: 92px; height: 118px; object-fit: cover; display: block; border: 1px solid #ffffff35; image-rendering: auto; }
.identity-card div { display: grid; gap: 7px; margin-top: 14px; }
.identity-card strong { font-size: 1.12rem; }
.identity-card span { color: var(--soft); font-size: .92rem; }
.identity-card small { color: var(--muted); }
.hero-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #ffffff32; }
.hero-metrics div { min-height: 116px; padding: 25px 22px 18px 0; border-right: 1px solid #ffffff22; }
.hero-metrics div:not(:first-child) { padding-left: 22px; }
.hero-metrics div:last-child { border-right: 0; }
.hero-metrics b { display: block; font-size: clamp(1.75rem, 3vw, 3rem); }
.hero-metrics span { display: block; margin-top: 8px; color: var(--soft); font-size: .88rem; line-height: 1.45; }

.featured, .work, .system { padding: 110px clamp(22px, 5vw, 80px); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; margin-bottom: 48px; }
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.section-heading h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 5.3rem); line-height: 1; }
.section-heading > p:last-child { max-width: 540px; margin: 0; color: var(--soft); font-size: 1rem; line-height: 1.7; justify-self: end; }

.featured { border-top: 1px solid var(--line); background: linear-gradient(135deg, #060606, #0c0809 55%, #050807); }
.featured-case { display: grid; grid-template-columns: minmax(360px, .8fr) 1.2fr; gap: clamp(34px, 6vw, 92px); align-items: start; }
.featured-video { position: sticky; top: 92px; border: 1px solid #ffffff2c; background: #090909; box-shadow: 0 30px 90px #000; }
.featured-video video { display: block; width: 100%; max-height: 76vh; object-fit: contain; }
.featured-copy { padding-top: 8px; }
.featured-copy h3 { margin: 22px 0 20px; font-size: clamp(2rem, 4vw, 4.4rem); line-height: 1.04; letter-spacing: -.03em; }
.featured-summary { margin: 0 0 30px; color: var(--soft); font-size: 1.08rem; line-height: 1.85; }
.type-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.type-tags span { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid #ffffff22; color: var(--cyan); font-size: .72rem; letter-spacing: .05em; }
.case-details, .mini-details { margin: 0; }
.case-details > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.case-details dt, .mini-details dt { color: var(--muted); font-size: .76rem; letter-spacing: .07em; }
.case-details dd { margin: 0; color: var(--soft); line-height: 1.75; }

.work { border-top: 1px solid var(--line); }
.filters { position: sticky; top: 65px; z-index: 20; display: flex; gap: 9px; overflow-x: auto; padding: 14px 0 20px; margin-bottom: 24px; background: linear-gradient(#030303 70%, #03030300); scrollbar-width: none; }
.filters button { flex: 0 0 auto; color: var(--soft); background: #0d0d0d; border: 1px solid var(--line); border-radius: 99px; padding: 9px 15px; cursor: pointer; }
.filters button:hover, .filters button:focus-visible, .filters button.active { color: #030303; border-color: var(--cyan); background: var(--cyan); }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.video-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); transition: transform .22s ease, border-color .22s ease; }
.video-card:hover { transform: translateY(-4px); border-color: #ffffff55; }
.video-card[hidden] { display: none; }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.card-copy { padding: 22px; }
.card-copy h3 { margin: 15px 0 11px; font-size: 1.35rem; }
.card-intro { min-height: 78px; margin: 0; color: var(--soft); line-height: 1.7; font-size: .93rem; }
.mini-details { margin-top: 18px; border-top: 1px solid var(--line); }
.mini-details > div { padding: 14px 0; border-bottom: 1px solid #242422; }
.mini-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-details dt { margin-bottom: 6px; }
.mini-details dd { margin: 0; color: #b5b5b0; line-height: 1.65; font-size: .86rem; }

.system { background: linear-gradient(145deg, #040404 0%, #0b0b0b 55%, #070409 100%); border-top: 1px solid var(--line); }
.system-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.system-grid > div { min-height: 250px; padding: 30px; border-right: 1px solid var(--line); }
.system-grid > div:last-child { border-right: 0; }
.system-grid b { color: var(--cyan); font-size: .82rem; }
.system-grid h3 { margin: 56px 0 15px; font-size: 1.55rem; }
.system-grid p { margin: 0; color: var(--soft); line-height: 1.7; }
.results { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 44px; gap: 14px; }
.results div { padding: 24px; border-top: 3px solid var(--pink); background: #090909; }
.results div:nth-child(2) { border-color: var(--amber); }
.results div:nth-child(3) { border-color: var(--green); }
.results div:nth-child(4) { border-color: var(--cyan); }
.results strong { display: block; font-size: 2rem; }
.results span { display: block; color: var(--soft); margin-top: 7px; font-size: .88rem; }
.tool-stack { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--soft); }

footer { display: flex; justify-content: space-between; gap: 60px; padding: 110px clamp(22px, 6vw, 96px); background: #030303 url("./assets/iridescent_bg.png") center 70% / cover no-repeat; border-top: 1px solid var(--line); }
footer h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6rem); }
footer p:not(.eyebrow) { color: var(--soft); }
address { display: grid; gap: 18px; align-content: end; font-style: normal; font-size: 1.2rem; }
address a:hover, address a:focus-visible { color: var(--cyan); }
address span { color: var(--muted); }

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-case { grid-template-columns: minmax(320px, .9fr) 1.1fr; gap: 42px; }
}

@media (max-width: 760px) {
  .site-header { padding: 18px 20px; }
  nav { gap: 15px; overflow-x: auto; white-space: nowrap; }
  nav a:first-child { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 125px; }
  .identity-card { justify-self: start; display: flex; gap: 16px; width: 100%; }
  .identity-card div { margin-top: 0; align-content: center; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
  .hero-metrics div:nth-child(2) { border-right: 0; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { justify-self: start; }
  .featured-case { grid-template-columns: 1fr; }
  .featured-video { position: relative; top: auto; }
  .case-details > div { grid-template-columns: 1fr; gap: 8px; }
  .system-grid, .results { grid-template-columns: 1fr 1fr; }
  .system-grid > div:nth-child(2) { border-right: 0; }
  .system-grid > div { border-bottom: 1px solid var(--line); }
  footer { flex-direction: column; }
}

@media (max-width: 560px) {
  h1 { font-size: 3.35rem; }
  .hero-metrics, .video-grid { grid-template-columns: 1fr; }
  .hero-metrics div { border-right: 0; border-bottom: 1px solid #ffffff22; padding-left: 0 !important; }
  .card-intro { min-height: 0; }
  .system-grid, .results { grid-template-columns: 1fr; }
  .system-grid > div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-card { transition: none; }
}
