:root {
  --bg: #07100f;
  --panel: #101818;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff8ee;
  --muted: #c9bfb2;
  --accent: #ffb24a;
  --teal: #36d6bd;
  --rose: #f06f8e;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 15, 0.02), rgba(7, 16, 15, 0.2) 30%, rgba(7, 16, 15, 0.24) 66%, rgba(7, 8, 7, 0.58)),
    url("./assets/bm-background-final.png") center top / contain no-repeat,
    radial-gradient(ellipse at 50% 4%, rgba(255, 178, 74, 0.16), transparent 22%),
    radial-gradient(ellipse at 34% 9%, rgba(54, 214, 189, 0.14), transparent 18%),
    radial-gradient(ellipse at 66% 9%, rgba(240, 111, 142, 0.12), transparent 17%),
    radial-gradient(ellipse at 52% 96%, rgba(255, 178, 74, 0.12), transparent 16%),
    #07100f;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  display: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(90deg, transparent 19%, rgba(255, 255, 255, 0.18) 19.2%, transparent 19.6%),
    linear-gradient(90deg, transparent 49%, rgba(54, 214, 189, 0.2) 49.1%, transparent 49.5%),
    linear-gradient(90deg, transparent 73%, rgba(255, 178, 74, 0.18) 73.1%, transparent 73.4%),
    repeating-linear-gradient(105deg, transparent 0 26px, rgba(255, 255, 255, 0.035) 27px 28px);
  mix-blend-mode: screen;
}

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

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

.language-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.78);
  backdrop-filter: blur(16px);
}

.language-switch button {
  min-width: 44px;
  min-height: 34px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button.active {
  color: #07100f;
  background: var(--accent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-weight: 900;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 36px;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: 50vh;
  display: grid;
  place-items: center;
  padding: 32px clamp(20px, 6vw, 82px) 34px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8vw 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(54, 214, 189, 0.55), rgba(255, 178, 74, 0.5), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: stretch;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.hero-copy {
  width: 100%;
}

.hero-side {
  display: grid;
  align-content: end;
  gap: 28px;
  min-height: 100%;
  padding-top: 126px;
}

.hero-brand {
  margin-bottom: 22px;
}

.hero-brand img {
  width: 116px;
  height: 100px;
}

.hero-brand span {
  font-size: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(56px, 8.8vw, 112px);
  line-height: 0.88;
  color: var(--text);
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

h2 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.94;
}

.title-work {
  max-width: 640px;
}

.title-knowledge,
.title-philosophy {
  max-width: 760px;
}

.title-work,
.title-knowledge,
.title-philosophy {
  white-space: nowrap;
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  color: #fffdf8;
  font-size: 24px;
}

p {
  color: #e6dbcf;
  font-size: 18px;
  line-height: 1.62;
}

.lead {
  max-width: 980px;
  margin: 18px 0 0;
  color: #efe5d8;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-photo,
.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-photo figcaption,
.media-frame figcaption {
  padding: 12px 14px 14px;
  color: var(--accent);
  background: rgba(7, 16, 15, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.hero-photo {
  position: relative;
  width: min(420px, 100%);
  min-height: min(420px, 52vh);
  justify-self: center;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
  background:
    radial-gradient(circle at 50% 18%, rgba(54, 214, 189, 0.18), transparent 32%),
    linear-gradient(180deg, #141a19, #050707);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: min(420px, 52vh);
  object-fit: contain;
  object-position: 50% 50%;
  mix-blend-mode: normal;
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  width: min(var(--content-width), 100%);
  margin: 24px auto 0;
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff8ee;
  background: rgba(7, 16, 15, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-nav a:hover {
  border-color: rgba(54, 214, 189, 0.7);
  color: var(--teal);
}

.quick-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  width: min(420px, 100%);
  max-width: none;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  text-align: left;
}

.quick-info div {
  min-height: 74px;
  padding: 14px;
  background: rgba(10, 18, 18, 0.78);
}

.quick-info span,
.contact-line span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-info strong {
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
}

.section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 32px;
}

.philosophy-section,
.support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.philosophy-section {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.section-copy {
  max-width: 720px;
  margin: 24px 0 0;
}

.stage-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  color: #fff8ee;
  text-align: center;
}

.stage-stamp img {
  width: min(340px, 100%);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.42));
}

.path-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.path-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.46);
}

.path-list span {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  color: var(--accent);
  border: 1px solid rgba(255, 178, 74, 0.45);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.path-list h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.path-list p {
  margin: 0;
  font-size: 13px;
  line-height: 1.32;
}

.build-block {
  margin-top: 22px;
}

.build-block .eyebrow {
  margin-bottom: 0;
}

.section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: end;
  margin-bottom: 30px;
}

.section-row p {
  margin: 0;
}

.works-section,
.support-section {
  width: min(var(--content-width), calc(100% - 40px));
}

.support-section {
  display: block;
}

.works-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: 34px;
}

.works-intro .section-row {
  display: block;
  margin-bottom: 0;
}

.works-intro-copy,
.works-intro-copy .section-row > div {
  min-width: 0;
}

.works-copy {
  max-width: 920px;
}

.works-intro .section-row > p {
  max-width: 860px;
  margin-top: 22px;
}

.title-work {
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
}

.section-portrait {
  width: min(380px, 100%);
  min-height: 380px;
}

.section-portrait img {
  min-height: 380px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: 50% 50%;
}

.portfolio-label {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  align-items: start;
}

.works-grid span {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.works-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.knowledge-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.app-qr {
  justify-self: end;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 170px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 16, 15, 0.7);
}

.app-qr p {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.app-qr img {
  width: 118px;
  height: 118px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
}

.qr-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 118px;
  aspect-ratio: 1 / 1;
  padding: 8px;
  background:
    linear-gradient(90deg, #fff 50%, transparent 0) 0 0 / 18px 18px,
    linear-gradient(#fff 50%, transparent 0) 0 0 / 18px 18px,
    #07100f;
}

.qr-demo span {
  background: #fff;
}

.qr-demo span:nth-child(2),
.qr-demo span:nth-child(4),
.qr-demo span:nth-child(6),
.qr-demo span:nth-child(8) {
  opacity: 0.55;
}

.support-points {
  margin-top: 24px;
}

.support ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support li {
  color: #e6dbcf;
  font-size: 16px;
  line-height: 1.36;
}

.support li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--teal);
  vertical-align: 0.12em;
}

.app-note {
  max-width: 100%;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #fff1df;
  font-size: 16px;
  line-height: 1.5;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 24px;
}

.knowledge-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2 {
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 900;
  line-height: 1.08;
  text-transform: none;
}

html[lang="zh-Hans"] h1 {
  font-size: clamp(36px, 5vw, 72px);
}

html[lang="zh-Hans"] h2 {
  font-size: clamp(28px, 3.4vw, 46px);
}

html[lang="zh-Hans"] .section h2 {
  max-width: none;
}

html[lang="zh-Hans"] .title-work {
  max-width: 100%;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
}

html[lang="zh-Hans"] .works-intro {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.contact-section {
  min-height: 240px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
  margin-top: 30px;
}

.contact-line {
  display: grid;
  gap: 8px;
  padding: 26px 0 0;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--rose), var(--accent), var(--teal)) 1;
}

.contact-line strong {
  color: var(--accent);
  font-size: 22px;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-side {
    padding-top: 0;
  }

  .hero-nav {
    justify-content: flex-start;
  }

  .quick-info {
    width: 100%;
    justify-self: stretch;
  }

  .hero-brand {
    margin-bottom: 34px;
  }

  .hero-content,
  .knowledge-header,
  .works-intro,
  .philosophy-section,
  .support-section,
  .section-row,
  .path-list,
  .support ul,
  .quick-info,
  .contact-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: min(360px, 100%);
    min-height: 360px;
  }

  .hero-photo img {
    min-height: 360px;
  }

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

  .path-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

}

@media (max-width: 520px) {
  .section {
    width: calc(100% - 28px);
    padding: 46px 0;
  }

}
