:root {
  --paper: #fff;
  --ink: #161616;
  --muted: #5b5a58;
  --line: #e3e1dd;
  --surface: #f6f5f2;
  --accent: #0064b8;
  --signal: #008de0;
  --site-width: 1440px;
  --gutter: clamp(22px, 5.2vw, 84px);
  --section-gap: clamp(56px, 7.5vw, 112px);
  --header-height: 80px;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.16; }
h2 { font-size: clamp(28px, 3.6vw, 50px); }
h3 { font-size: clamp(19px, 2.05vw, 28px); }
p { line-height: 1.75; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.home-theme {
  --paper: #000;
  --ink: #f3f1ee;
  --muted: #b2b0ad;
  --line: #343434;
  --surface: #141415;
  --accent: #49beff;
  color-scheme: dark;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-inner,
.footer-inner,
.section,
.inner-hero {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.topbar-inner {
  min-height: calc(var(--header-height) - 1px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: center;
  gap: 4px;
  padding-inline: 4px;
  transform: skewX(-22deg);
}
.brand-mark i { width: 5px; height: 18px; background: var(--ink); }
.brand-mark i:nth-child(2) { height: 28px; }
.brand-mark i:nth-child(3) { background: var(--signal); }
.brand-copy { display: grid; gap: 5px; }
.brand-copy strong { font-size: 18px; line-height: 1; letter-spacing: .045em; }
.brand-copy small { font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .19em; }

.nav { display: flex; align-items: center; gap: clamp(15px, 1.65vw, 29px); }
.nav a {
  display: grid;
  place-items: center;
  position: relative;
  min-height: calc(var(--header-height) - 1px);
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { font-weight: 650; }
.nav a[aria-current]::after {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--signal);
  content: '';
}
.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: fit-content;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.nav-cta { justify-self: end; }
.nav-cta:hover, .button.outline:hover { border-color: var(--ink); }
.button.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-cta span, .button span, .text-link span { font-size: 17px; line-height: 1; }
.menu-toggle { display: none; }

.section { padding-block: var(--section-gap); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px 42px;
  margin-bottom: clamp(26px, 4vw, 50px);
}
.section-heading > p { max-width: 420px; color: var(--muted); }
.section-title { margin-bottom: clamp(28px, 4vw, 52px); }
.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: 35px;
  font-size: 14px;
  font-weight: 650;
}
.text-link:hover { color: var(--accent); }
.disclaimer { margin-top: 22px; color: var(--muted); font-size: 13px; }
.body-copy { margin-top: 21px; color: var(--muted); }

.home-theme .topbar { border-bottom-color: transparent; }
.home-theme .topbar-inner { max-width: 1330px; }
.home-theme .nav a { color: var(--ink); }
.home-theme .nav a:hover, .home-theme .nav a[aria-current] { color: var(--accent); }
.home-theme .nav a[aria-current]::after { content: none; }
.home-theme .nav-cta, .button.hero-blue {
  border-color: #0879c9;
  background: #0879c9;
  color: #fff;
}
.home-theme .nav-cta:hover, .button.hero-blue:hover {
  border-color: #0065ac;
  background: #0065ac;
}
.home-theme .nav-cta { border-radius: 7px; }

.video-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(48px, 8vh, 110px) var(--gutter) clamp(70px, 12vh, 150px);
  background: #000;
}
.video-backdrop, .video-backdrop video, .video-backdrop::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-backdrop {
  z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, #08121c 0%, #03080e 37%, #000 68%);
}
.video-backdrop video { object-fit: cover; }
.video-backdrop::after {
  content: '';
  background:
    linear-gradient(180deg, #000 0%, transparent 17%, transparent 78%, #000 100%),
    radial-gradient(ellipse at center, #0006 24%, transparent 74%);
}
.hero-copy {
  display: grid;
  justify-items: center;
  width: 100%;
  text-align: center;
}
.hero-copy h1 {
  display: grid;
  gap: .16em;
  color: #fff;
  font-size: clamp(46px, 6.1vw, 112px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.046em;
}
.hero-copy h1 span:last-child { color: #29bbf8; }
@supports (background-clip: text) {
  .hero-copy h1 span:last-child {
    background: linear-gradient(100deg, #39e3ff 0%, #11abdf 53%, #1b72dc 100%);
    background-clip: text;
    color: transparent;
  }
}
.hero-services {
  color: #fff;
  font-size: clamp(16px, 1.53vw, 23px);
  font-weight: 650;
  margin-top: clamp(26px, 4.2vh, 49px);
}
.hero-description {
  color: #d9e1ea;
  font-size: clamp(14px, 1.25vw, 18px);
  margin-top: clamp(8px, 1.6vh, 20px);
}
.hero-copy .hero-actions { justify-content: center; gap: 14px; margin-top: clamp(22px, 4.3vh, 48px); }
.hero-copy .button {
  min-width: clamp(113px, 9.4vw, 158px);
  min-height: clamp(46px, 4.1vw, 57px);
  border-radius: 8px;
  font-size: clamp(14px, 1.16vw, 18px);
}
.button.hero-light { background: #fff; border-color: #fff; color: #111; }
.button.hero-light:hover { background: #d6efff; border-color: #d6efff; }
.video-toggle {
  position: absolute;
  bottom: 21px;
  right: max(var(--gutter), env(safe-area-inset-right));
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #fff7;
  border-radius: 6px;
  background: #000b;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .58fr);
  align-items: end;
  gap: 36px;
  padding-bottom: clamp(38px, 5.6vw, 80px);
}
.home-intro h2 { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -.062em; }
.home-intro-copy { border-top: 1px solid var(--line); padding-top: 22px; }
.home-intro-copy p { color: var(--muted); font-size: clamp(16px, 1.5vw, 21px); margin-bottom: 18px; }
.home-cases { padding-top: clamp(32px, 5vw, 75px); }
.home-case-cards { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; }
.home-case-cards .project:first-child { grid-column: 1 / -1; }
.project { display: grid; align-content: start; }
.project-image, .case-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.56;
  background: var(--surface);
}
.home-case-cards .project:first-child .project-image { aspect-ratio: 2.32; }
.home-case-cards .project:nth-child(2) .project-image { aspect-ratio: 1.9; }
.home-case-cards .project:nth-child(3) .project-image { aspect-ratio: 1.23; }
.project-image img, .case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}
.model-image { background: #f7f6f4; }
.model-image img { object-fit: contain; mix-blend-mode: multiply; padding: 4%; }
.project:hover img, .case-image:hover img { transform: scale(1.035); }
.project-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-block: 15px 19px;
}
.project-caption p { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.project-caption h3 { font-size: clamp(20px, 2.25vw, 33px); }
.arrow { font-size: 22px; color: var(--muted); transition: transform 180ms ease, color 180ms ease; }
.project:hover .arrow, .service-list a:hover .arrow { transform: translate(3px, -3px); color: var(--accent); }

.home-services { padding-top: 0; }
.service-list { border-top: 1px solid var(--line); }
.service-list a {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) 28px;
  gap: 12px 24px;
  align-items: center;
  padding: clamp(21px, 2.5vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}
.service-list a:hover h3 { color: var(--accent); }
.service-list p { color: var(--muted); }
.service-list .arrow { justify-self: end; }
.home-contact { padding-top: 0; }
.contact-inner, .page-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(28px, 5.2vw, 76px);
  background: var(--surface);
}
.contact-inner p { color: var(--muted); }

.inner-hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5.5vw, 88px);
  align-items: center;
  padding-block: clamp(54px, 7vw, 104px) clamp(40px, 5.65vw, 84px);
}
.inner-hero h1 { font-size: clamp(40px, 5.5vw, 82px); letter-spacing: -.062em; }
.inner-hero h1::after {
  display: block;
  width: clamp(22px, 3.3vw, 46px);
  height: 3px;
  margin-top: clamp(20px, 3vw, 35px);
  background: var(--signal);
  content: '';
}
.inner-hero-content > p {
  max-width: 465px;
  margin-top: 23px;
  color: var(--muted);
  font-size: clamp(16px, 1.45vw, 20px);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.inner-hero-visual img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.bim-page .inner-hero-visual,
.deep-page .inner-hero-visual { background: var(--surface); }
.bim-page .inner-hero-visual img,
.deep-page .inner-hero-visual img {
  object-fit: contain;
  padding: 4%;
  mix-blend-mode: multiply;
}
.inner-hero-visual figcaption {
  color: var(--muted);
  font-size: 12px;
  padding: 12px 0 0;
  background: var(--paper);
}
.cases-page, .credentials-page { display: block; padding-bottom: clamp(28px, 5vw, 64px); }
.cases-page h1, .credentials-page h1 { font-size: clamp(40px, 6.2vw, 89px); }
.cases-page .inner-hero-content > p, .credentials-page .inner-hero-content > p { max-width: 650px; }
.inner-theme .section { border-top: 1px solid var(--line); }
.inner-theme .section h2 { letter-spacing: -.038em; }

.detail-cards, .process-grid, .values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 36px);
}
.detail-cards article, .process-grid article, .values article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 0 8px;
  border-top: 1px solid var(--line);
}
.detail-cards article > p, .process-grid article p, .values article p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}
.detail-cards article > span { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--accent); }
.process-grid small { color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.process-grid h3 { font-size: clamp(18px, 1.65vw, 24px); }
.page-cta { margin-top: clamp(32px, 5vw, 68px); }
.page-cta:first-child { margin-top: 0; }
.page-cta h2 { font-size: clamp(23px, 3vw, 42px); }

.platform-layout, .bim-delivery, .software-method, .scope-layout, .about-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(26px, 5vw, 70px);
}
.platform-layout, .bim-delivery { align-items: center; }
.platform-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.platform-visual img, .bim-delivery-image img { width: 100%; }
.bim-delivery-image img { aspect-ratio: 1.5; object-fit: cover; }
.platform-copy > p { margin-top: 19px; color: var(--muted); }
.platform-copy ul { padding: 0; margin: 23px 0 0; list-style: none; }
.platform-copy li, .scope-list article, .credential-list article {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.platform-copy li { display: flex; justify-content: space-between; gap: 12px 22px; font-size: 14px; }
.platform-copy li span { color: var(--muted); }
.scope-list, .credential-list { border-bottom: 1px solid var(--line); }
.scope-list b, .credential-list b, .values b { font-size: clamp(17px, 1.7vw, 24px); }
.scope-list p, .credential-list p { color: var(--muted); margin-top: 7px; }
.about-main .body-copy { margin-top: 0; }
.values { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(25px, 5vw, 65px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-list span { padding: 6px 10px; background: var(--surface); font-size: 13px; }
.method-list { margin: 0; padding-left: 0; list-style-position: inside; }
.method-list li { border-top: 1px solid var(--line); padding: 16px 0; }
.method-list li:last-child { border-bottom: 1px solid var(--line); }
.method-list li::marker { color: var(--accent); font-weight: 700; }

.cases-list { padding-top: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}
.filter:hover { border-color: var(--muted); }
.filter[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 26px; }
.case-card { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.case-image { aspect-ratio: 1.65; }
.case-image > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #fff;
  color: #161616;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 19px;
}
.case-meta { padding-top: 15px; }
.case-meta small { display: block; margin-bottom: 7px; color: var(--accent); font-size: 13px; }
.case-card > p { color: var(--muted); font-size: 15px; margin-top: 10px; }

.page-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 108px;
  padding-block: 22px;
}
.footer-inner > span { color: var(--muted); font-size: 13px; }

@media (max-width: 1050px) {
  :root { --header-height: 68px; }
  .topbar-inner { grid-template-columns: 1fr auto auto; gap: 16px; }
  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    order: 1;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 16px; height: 1px; background: var(--ink); }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .nav.open { display: block; }
  .nav a { display: flex; min-height: 46px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current] { color: var(--accent); }
  .nav a[aria-current]::after { content: none; }
  .nav-cta { min-height: 42px; }
  .inner-hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .detail-cards, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero-copy h1 { font-size: clamp(38px, 10.7vw, 70px); }
  .home-intro, .inner-hero, .platform-layout, .bim-delivery,
  .software-method, .scope-layout, .about-main { grid-template-columns: minmax(0, 1fr); }
  .home-intro { padding-top: 35px; gap: 28px; }
  .home-intro h2 { font-size: clamp(34px, 8vw, 56px); }
  .inner-hero { padding-top: 43px; }
  .inner-hero h1 { font-size: clamp(33px, 9vw, 60px); }
  .inner-hero-visual img { aspect-ratio: 1.6; }
  .home-case-cards, .case-grid, .values { grid-template-columns: minmax(0, 1fr); }
  .home-case-cards .project:nth-child(n) .project-image { aspect-ratio: 1.56; }
  .service-list a { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 14px; }
  .service-list p { grid-row: 2; font-size: 14px; }
  .service-list .arrow { grid-column: 2; grid-row: 1 / 3; }
  .contact-inner, .page-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  .topbar-inner { gap: 10px; }
  .nav-cta { gap: 5px; padding-inline: 9px; min-height: 40px; font-size: 12px; }
  .brand { gap: 6px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 7px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .section-heading .text-link { min-height: 26px; }
  .footer-inner { display: grid; grid-template-columns: 1fr auto; }
  .footer-inner > span { grid-column: 1; grid-row: 2; }
  .footer-inner > a:last-child { grid-column: 2; grid-row: 1 / 3; }
  .platform-copy li { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
