:root {
  --bg: #05070d;
  --panel: #080b12;
  --panel-soft: #101621;
  --text: #f5f7fb;
  --muted: #9ba6b6;
  --line: rgba(255, 255, 255, 0.14);
  --red: #ef2f2f;
  --blue: #2f7bff;
  --green: #54b86c;
  --white: #ffffff;
  color: var(--text);
  background: var(--bg);
  font-family: "Arial", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #eef0f5;
}

body.locked {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

.portfolio-shell {
  min-height: 100vh;
  background: #eef0f5;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 80;
  width: min(1120px, calc(100vw - 28px));
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.76);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand::after {
  content: "+";
  margin-left: 4px;
  color: var(--red);
}

.site-nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #c9d2df;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
}

.space-panel,
.contents-panel,
.works-panel,
.experience-panel {
  position: relative;
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.space-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.space-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.08) 62%, rgba(0, 0, 0, 0.48)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent 45%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.hero-panel {
  min-height: 680px;
  margin-top: 0;
}

.panel-glass {
  position: relative;
  z-index: 2;
  width: min(610px, 62vw);
  padding: 96px 0 0 54px;
}

.eyebrow,
.cover-aside,
.section-kicker,
.section-title span,
.group-heading span,
.job-panel span,
.thanks-copy span {
  color: #cfd8e7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.eyebrow::before,
.section-title span::before,
.section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  background: var(--red);
}

.panel-glass h1 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-glass h1 span {
  color: var(--red);
}

.panel-glass p {
  width: min(420px, 100%);
  margin: 18px 0 0;
  color: #d7dfeb;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 800;
}

.hero-meta {
  display: grid;
  gap: 8px;
  width: min(430px, 100%);
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-meta strong {
  font-size: 30px;
  line-height: 1;
}

.hero-meta span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cover-aside {
  position: absolute;
  right: 42px;
  top: 96px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 9px;
  width: 170px;
  text-align: right;
}

.cover-aside strong {
  color: #fff;
  font-size: 14px;
}

.cover-aside p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about-panel {
  min-height: 680px;
}

.about-bg {
  opacity: 0.44;
  object-position: right center;
}

.about-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 58px;
  align-items: start;
  min-height: 680px;
  padding: 72px 70px;
}

.portrait-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portrait-card img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-card figcaption {
  padding: 18px 20px 20px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.about-copy {
  max-width: 760px;
}

.about-copy h2,
.section-title h2,
.thanks-copy h2 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: 0;
}

.about-copy h2 span {
  color: var(--red);
}

.about-copy p {
  max-width: 680px;
  margin: 22px 0 28px;
  color: #d2d9e5;
  font-size: 16px;
  line-height: 1.9;
}

.about-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 0 0 18px;
}

.about-copy dl div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.about-copy dt {
  color: var(--muted);
  font-size: 13px;
}

.about-copy dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.about-detail-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 26px;
}

.about-detail-strip div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.62);
}

.about-detail-strip span,
.mini-heading small,
.about-jobs article span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.about-detail-strip strong {
  color: #fff;
  font-size: 15px;
}

.about-info-block {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mini-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #fff;
  font-weight: 950;
}

.mini-heading::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red);
}

.about-info-block > p {
  max-width: none;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.62);
  color: #eef4ff;
  font-size: 15px;
  line-height: 1.8;
}

.about-jobs {
  display: grid;
  gap: 12px;
}

.about-jobs article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.62);
}

.about-jobs article strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.about-jobs article p {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0;
  color: #cdd8e8;
  font-size: 14px;
  line-height: 1.6;
}

.contents-panel,
.works-panel {
  padding: 72px 70px;
}

.section-title {
  position: relative;
  z-index: 2;
  margin-bottom: 36px;
}

.section-title.centered {
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.menu-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  text-align: left;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  border-color: rgba(239, 47, 47, 0.72);
  background: linear-gradient(180deg, rgba(239, 47, 47, 0.22), rgba(47, 123, 255, 0.08));
  transform: translateY(-6px);
}

.menu-card span {
  color: var(--red);
  font-size: 32px;
  font-weight: 950;
}

.menu-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.menu-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.experience-summary-panel {
  background:
    linear-gradient(135deg, rgba(47, 123, 255, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(239, 47, 47, 0.09), transparent 36%),
    var(--panel);
}

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

.experience-summary-card {
  min-height: 168px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-content: start;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.experience-summary-card span {
  color: var(--red);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.experience-summary-card strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.experience-summary-card small {
  display: block;
  margin-top: 8px;
  color: #b8c5d6;
  font-size: 13px;
  font-weight: 900;
}

.experience-summary-card p {
  grid-column: 2;
  margin: 8px 0 0;
  color: #d2dbea;
  font-size: 15px;
  line-height: 1.75;
}

.experience-summary-card.compact strong {
  font-size: 22px;
}

.filter-bar {
  position: sticky;
  top: 78px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(14px);
}

.filter-bar button {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #d4dbea;
  font-size: 13px;
  font-weight: 850;
}

.filter-bar button.active,
.filter-bar button:hover,
.filter-bar button:focus-visible {
  border-color: rgba(239, 47, 47, 0.8);
  color: #fff;
  background: var(--red);
}

.works-stack {
  display: grid;
  gap: 46px;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.group-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
}

.group-heading span {
  color: var(--red);
  font-size: 18px;
}

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

.video-group .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-group .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-group .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oc-group .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: rgba(47, 123, 255, 0.82);
  background: rgba(47, 123, 255, 0.1);
  transform: translateY(-6px);
}

.work-card img,
.work-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: clamp(172px, 18vw, 230px);
  border-radius: 6px;
  object-fit: cover;
  background: #0d111a;
}

.work-card.tall-work-card img {
  object-position: center center;
}

.work-card.contain-work-card img {
  object-fit: cover;
  object-position: center center;
  background: #0d111a;
}

.work-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.work-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.experience-panel {
  background:
    linear-gradient(135deg, rgba(47, 123, 255, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(84, 184, 108, 0.12), transparent 38%),
    var(--panel);
}

.job-panel {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 44px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.job-panel h3 {
  margin: 12px 0 10px;
  color: #fff;
  font-size: 28px;
  line-height: 1.15;
}

.job-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.job-panel ol {
  margin: 0;
  padding-left: 20px;
  color: #d3dbea;
  line-height: 1.9;
}

.job-panel li + li {
  margin-top: 8px;
}

.skill-strip {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  overflow: hidden;
  white-space: nowrap;
}

.skill-strip span {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 850;
}

.thanks-panel {
  min-height: 560px;
  margin-bottom: 0;
}

.thanks-panel::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.48)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 46%, rgba(0, 0, 0, 0.48));
}

.thanks-copy {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 80px 28px;
  text-align: center;
}

.thanks-copy h2 {
  font-size: clamp(70px, 14vw, 150px);
}

.thanks-copy address {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-style: normal;
}

.thanks-copy address > * {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #dce4ef;
  background: rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #0b1018;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-panel img,
.lightbox-panel video {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.lightbox-panel img {
  clip-path: none;
}

.lightbox-panel img[hidden],
.lightbox-panel video[hidden] {
  display: none;
}

.lightbox-panel.tall-preview {
  width: min(760px, calc(100vw - 36px));
  grid-template-columns: 1fr;
}

.lightbox-panel.tall-preview img {
  max-height: none;
  height: auto;
}

.lightbox-panel.video-preview {
  width: min(960px, calc(100vw - 36px));
  grid-template-columns: 1fr;
}

.lightbox-panel.video-preview video {
  width: 100%;
  max-height: 68vh;
}

.lightbox-panel div {
  display: grid;
  align-content: end;
  gap: 10px;
}

.lightbox-panel span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.lightbox-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
}

.lightbox-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(239, 51, 48, 0.92);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  background: #ff3a35;
  transform: translateY(-50%) scale(1.04);
}

.lightbox-arrow-left {
  left: max(18px, calc(50vw - 472px));
}

.lightbox-arrow-right {
  right: max(18px, calc(50vw - 472px));
}

.close-button {
  position: static;
  grid-column: 1 / -1;
  justify-self: end;
  align-self: end;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #fff;
  background: rgba(239, 47, 47, 0.92);
  font-weight: 900;
}

@media (max-width: 900px) {
  .site-nav {
    grid-template-columns: 1fr;
    height: auto;
    gap: 10px;
    padding: 12px 16px;
  }

  .site-nav nav {
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .hero-panel {
    min-height: 700px;
  }

  .panel-glass {
    width: min(620px, 100%);
    padding: 112px 28px 0;
  }

  .cover-aside {
    top: auto;
    right: 28px;
    bottom: 34px;
  }

  .about-layout,
  .job-panel,
  .lightbox-panel {
    grid-template-columns: 1fr;
  }

  .about-layout,
  .contents-panel,
  .works-panel {
    padding: 62px 28px;
  }

  .menu-grid,
  .experience-summary-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-group .work-grid,
  .listing-group .work-grid,
  .oc-group .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .space-panel,
  .contents-panel,
  .works-panel {
    width: min(100%, calc(100vw - 18px));
    margin-bottom: 18px;
  }

  .site-nav nav {
    overflow-x: auto;
    justify-content: start;
    padding-bottom: 2px;
  }

  .hero-panel {
    min-height: 660px;
  }

  .space-bg {
    object-position: 58% center;
  }

  .panel-glass h1 {
    font-size: 54px;
  }

  .panel-glass p {
    font-size: 15px;
  }

  .hero-meta {
    margin-top: 40px;
  }

  .about-layout,
  .contents-panel,
  .works-panel {
    padding: 56px 18px;
  }

  .about-copy dl,
  .about-detail-strip,
  .about-jobs article,
  .menu-grid,
  .experience-summary-grid,
  .work-grid,
  .video-group .work-grid,
  .listing-group .work-grid,
  .oc-group .work-grid {
    grid-template-columns: 1fr;
  }

  .experience-summary-card,
  .experience-summary-card p {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .filter-bar {
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .filter-bar button {
    flex: 0 0 auto;
  }

  .thanks-copy h2 {
    font-size: 64px;
  }
}
