@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Alibaba PuHuiTi";
  src: url("./assets/fonts/alibaba-heavy.otf") format("opentype");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --red: #b5151d;
  --ink: #171717;
  --paper: #f4f2ed;
  --muted: #77736d;
  --line: #d2cec6;
  --page: min(1360px, calc(100vw - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans SC Variable", "Alibaba PuHuiTi", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 82px;
  padding: 0 max(48px, calc((100vw - 1360px) / 2));
  align-items: center;
  justify-content: space-between;
  color: white;
  transition: background .3s, height .3s;
}
.site-header.scrolled {
  height: 68px;
  background: rgba(20,20,20,.94);
  backdrop-filter: blur(14px);
}
.brand { position: relative; z-index: 2; width: 158px; }
.desktop-nav { display: flex; gap: 38px; }
.desktop-nav a { font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.desktop-nav a:hover { color: #db4a50; }
.menu-toggle {
  position: relative; z-index: 2; display: none; width: 42px; height: 42px;
  padding: 0; border: 0; background: none;
}
.menu-toggle span {
  position: absolute; left: 8px; width: 26px; height: 1px; background: white;
  transition: .3s;
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; z-index: 40; inset: 0; display: grid; padding: 110px 28px 40px;
  color: white; background: #161616; visibility: hidden; opacity: 0;
  align-items: center; transition: .3s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; }
.mobile-menu nav { display: grid; }
.mobile-menu a {
  display: flex; padding: 22px 0; border-bottom: 1px solid #444;
  font-size: 28px; justify-content: space-between;
}
.mobile-menu a span { color: #777; font-size: 11px; }

.hero { position: relative; height: 100svh; min-height: 680px; color: white; background: #111; overflow: hidden; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; animation: heroZoom 12s ease-out both; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.08) 72%),
              linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%);
}
.hero-content {
  position: relative; z-index: 1; display: flex; width: var(--page); height: 100%;
  margin: auto; padding: 135px 0 44px; flex-direction: column;
}
.micro, .section-label {
  margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .18em;
}
.hero-copy { margin: auto 0; text-align: left; }
.hero h1 {
  max-width: 750px; margin: 0; font-family: "Alibaba PuHuiTi", sans-serif;
  font-size: clamp(64px, 7vw, 108px); font-weight: 700;
  letter-spacing: .015em; line-height: 1.04;
}
.hero-intro {
  margin: 34px 0 0; font-size: 15px; font-weight: 350; line-height: 1.9; text-align: left;
}
.hero-footer {
  display: flex; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35);
  font-size: 10px; letter-spacing: .12em; justify-content: space-between;
}
.hero-footer a { display: flex; gap: 16px; align-items: center; }
.hero-footer i { color: #e44950; font-size: 18px; font-style: normal; }

.section { width: var(--page); margin: auto; padding: 130px 0; }
.section-label { display: flex; color: var(--muted); gap: 16px; }
.section-label span { color: var(--red); }
.intro-grid {
  display: grid; margin-top: 60px; grid-template-columns: 1.45fr .65fr; gap: 12vw; align-items: start;
}
.intro h2 {
  margin: 0;
}
.display-title {
  font-family: "Alibaba PuHuiTi", sans-serif !important;
  font-size: clamp(38px, 4vw, 60px) !important;
  font-weight: 700 !important;
  letter-spacing: -.015em !important;
  line-height: 1.28 !important;
}
.intro-copy { padding-top: 8px; }
.intro-copy p { margin: 0 0 20px; color: #5e5b56; font-size: 14px; line-height: 2; }
.nationwide-badge {
  display: grid; margin-top: 36px; padding: 22px 24px; border-left: 4px solid var(--red);
  color: white; background: var(--ink); gap: 5px;
}
.nationwide-badge strong { font-family: "Alibaba PuHuiTi", sans-serif; font-size: 20px; font-weight: 700; }
.nationwide-badge span { color: #bdbab4; font-size: 8px; letter-spacing: .13em; }
.nationwide-badge i { margin-top: 8px; color: #e7e2da; font-size: 12px; font-style: normal; }
.capability-line {
  display: flex; margin-top: 90px; color: #66625d; font-size: 10px;
  letter-spacing: .14em; align-items: center; justify-content: space-between;
}
.capability-line i { width: min(8vw, 110px); height: 1px; background: var(--line); }

.work { border-top: 1px solid var(--line); }
.section-top {
  position: relative; display: flex; min-height: 94px; margin-bottom: 66px;
  align-items: end; justify-content: center;
}
.section-top > .section-label { position: absolute; bottom: 12px; left: 0; }
.section-top h2 {
  margin: 0 0 12px; font-family: "Alibaba PuHuiTi", sans-serif;
  font-size: 48px; font-weight: 700; letter-spacing: -.015em;
}
.work-heading { text-align: center; }
.section-top > div:last-child p { margin: 0; color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 32px; }
.project-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.project-media::after { position: absolute; inset: 0; background: rgba(0,0,0,.14); content: ""; opacity: 0; transition: .4s; }
.project-media img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-media .energy-project { object-position: center 48%; }
.project-media > span {
  position: absolute; z-index: 2; right: 22px; bottom: 20px; color: white;
  font-size: 9px; letter-spacing: .14em; opacity: 0; transform: translateY(8px); transition: .35s;
}
.project-media:hover img { transform: scale(1.025); }
.project-media:hover::after, .project-media:hover > span { opacity: 1; }
.project-media:hover > span { transform: translateY(0); }
.project-info {
  display: flex; padding-top: 18px; border-top: 1px solid var(--line);
  align-items: flex-start; justify-content: space-between;
}
.project-info small { color: #8a867f; font-size: 9px; letter-spacing: .14em; }
.project-info h3 { margin: 8px 0 0; font-size: 21px; font-weight: 480; letter-spacing: -.025em; }
.case-divider {
  display: inline-block; width: 1px; height: .78em; margin: 0 .14em;
  background: currentColor; vertical-align: -.02em;
}
.project-info em { color: var(--red); font-size: 10px; font-style: normal; }

.services {
  position: relative; display: grid; width: 100%; overflow: hidden;
  padding: 130px max(48px, calc((100vw - 1360px) / 2));
  color: white; background: #191919; grid-template-columns: .8fr 1.2fr; gap: 10vw;
}
.services-brand {
  position: absolute; top: 50%; left: clamp(-225px, -12vw, -115px);
  width: clamp(410px, 38vw, 650px); pointer-events: none;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}
.services-brand img { width: 100%; height: auto; opacity: .075; }
.services > *:not(.services-brand) { position: relative; z-index: 1; }
.services-intro .section-label { color: #777; }
.services-intro h2 {
  margin: 50px 0 28px;
}
.services-intro > p { max-width: 400px; margin: 0; color: #999; font-size: 13px; line-height: 1.9; }
.service-list { border-top: 1px solid #444; }
.service-list article {
  display: grid; min-height: 142px; padding: 28px 0; border-bottom: 1px solid #444;
  grid-template-columns: 50px 1fr auto; align-items: center;
}
.service-list article > span, .service-list small { color: #777; font-size: 9px; letter-spacing: .12em; }
.service-list h3 { margin: 0 0 10px; font-size: 28px; font-weight: 420; }
.service-list p { margin: 0; color: #8d8d8d; font-size: 12px; }

.feature { position: relative; height: min(70vw, 820px); color: white; overflow: hidden; background: #111; }
.feature > img { height: 100%; object-fit: cover; }
.feature-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.05)); }
.feature-copy { position: absolute; bottom: 12%; left: max(48px, calc((100vw - 1360px) / 2)); }
.feature-copy p { margin: 0 0 22px; color: #e64c53; font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.feature-copy h2 {
  margin: 0; color: white;
}

.clients { border-bottom: 1px solid var(--line); }
.clients-grid {
  display: grid; margin-top: 64px; border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}
.client {
  display: flex; min-height: 132px; padding: 24px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.38);
  align-items: center; justify-content: center; gap: 16px;
}
.client:nth-child(4n) { border-right: 0; }
.client img {
  width: auto; max-width: min(72%, 205px); max-height: 58px;
  object-fit: contain; mix-blend-mode: multiply;
  transition: transform .65s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .client:hover img { transform: scale(1.055); }
}
.client img.logo-square { max-width: 82px; max-height: 82px; }
.client img.logo-portrait { max-width: 118px; max-height: 72px; }
.client img.logo-short { max-width: 155px; max-height: 54px; }
.client-more,
.section-more {
  display: flex; height: 88px; gap: 9px; align-items: center; justify-content: center;
}
.client-more i,
.section-more i {
  width: 5px; height: 5px; border-radius: 50%; background: #77736d;
  animation: clientDotPulse 1.8s ease-in-out infinite;
}
.client-more i:nth-child(2),
.section-more i:nth-child(2) { animation-delay: .25s; }
.client-more i:nth-child(3),
.section-more i:nth-child(3) { animation-delay: .5s; }
@keyframes clientDotPulse {
  0%, 100% { opacity: .28; transform: scale(.78); }
  50% { opacity: 1; transform: scale(1.18); }
}
.client b {
  display: grid; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #777;
  border-radius: 50%; color: var(--red); font-family: "Alibaba PuHuiTi", sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: -.04em; place-items: center;
}
.client > span { font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.client small { display: block; margin-top: 6px; color: #999; font-size: 10px; font-weight: 400; }

.contact { padding-bottom: 90px; }
.contact-main {
  display: grid; margin-top: 62px; grid-template-columns: 1.4fr .6fr; gap: 8vw; align-items: end;
}
.contact h2 {
  margin: 0;
}
.contact-link {
  display: grid; padding: 24px 0; border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink); grid-template-columns: 1fr auto;
}
.contact-link span { grid-column: 1 / -1; margin-bottom: 26px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.contact-link strong { font-size: 24px; font-weight: 450; }
.contact-link i { color: var(--red); font-size: 25px; font-style: normal; }
.contact-bottom {
  display: grid; margin-top: 90px; padding-top: 25px; border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto; gap: 70px; align-items: end;
}
.contact-details {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.contact-details span { color: #96918a; font-size: 9px; letter-spacing: .14em; }
.contact-details p { margin: 10px 0 0; font-size: 13px; }
.qr-card {
  width: 132px; padding: 7px; background: white;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  transition: transform .65s cubic-bezier(.2,.7,.2,1), box-shadow .65s;
}
@media (hover: hover) and (pointer: fine) {
  .qr-card:hover {
    transform: scale(1.055);
    box-shadow: 0 18px 45px rgba(0,0,0,.13);
  }
}

footer {
  display: grid; min-height: 180px; padding: 45px max(48px, calc((100vw - 1360px) / 2));
  color: white; background: var(--red); grid-template-columns: 170px 1fr auto; gap: 50px; align-items: end;
}
footer img { width: 145px; }
footer p, footer a { margin: 0; font-size: 9px; letter-spacing: .12em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.tech-title .tech-char {
  position: relative; display: inline-block; width: 1em;
  opacity: 0; text-align: center; transform: translateY(.04em);
  font: inherit; line-height: inherit; letter-spacing: inherit;
}
.tech-copy .tech-char {
  position: relative; display: inline-block; opacity: 0;
  font: inherit; line-height: inherit; letter-spacing: inherit;
  white-space: pre;
}
.tech-title .tech-char.tech-punctuation { width: .62em; }
.tech-title .tech-char::before,
.tech-title .tech-char::after {
  position: absolute; inset: 0; content: attr(data-char);
  pointer-events: none; opacity: 0;
}
.tech-title .tech-char::before { color: #b5151d; }
.tech-title .tech-char::after { color: #8da7b7; }
.tech-title .tech-char.is-decoding {
  opacity: .72; color: #8da7b7; transform: none;
}
.tech-copy .tech-char.is-decoding { opacity: .72; color: #8da7b7; }
.tech-title .tech-char.is-locked {
  opacity: 1; color: inherit; transform: none;
  animation: terminalLock .2s ease-out both;
}
.tech-copy .tech-char.is-locked {
  opacity: 1; color: inherit;
  animation: copyTerminalLock .14s ease-out both;
}
.tech-title .tech-char.is-locked::before {
  animation: terminalEchoRed .18s steps(2, end) both;
}
.tech-title .tech-char.is-locked::after {
  animation: terminalEchoBlue .16s steps(2, end) both;
}
@keyframes terminalLock {
  0% { opacity: .55; transform: translateX(.035em); }
  100% { opacity: 1; transform: none; }
}
@keyframes copyTerminalLock {
  0% { opacity: .45; }
  100% { opacity: 1; }
}
@keyframes terminalEchoRed {
  0%, 100% { opacity: 0; transform: none; }
  35% { opacity: .65; transform: translate(.035em,0); }
  70% { opacity: .28; transform: translate(-.02em,0); }
}
@keyframes terminalEchoBlue {
  0%, 100% { opacity: 0; transform: none; }
  40% { opacity: .42; transform: translate(-.035em,0); }
  75% { opacity: .18; transform: translate(.018em,0); }
}
@keyframes heroZoom { from { transform: scale(1.045); } to { transform: scale(1); } }

@media (max-width: 900px) {
  :root { --page: calc(100vw - 48px); }
  .site-header { padding: 0 24px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-content { padding-top: 115px; }
  .intro-grid, .services, .contact-main { grid-template-columns: 1fr; }
  .intro-grid { gap: 45px; }
  .services { padding-right: 24px; padding-left: 24px; gap: 70px; }
  .section-top { min-height: 120px; }
  .section-top > .section-label { bottom: 10px; }
  .feature-copy { left: 24px; }
}

@media (max-width: 640px) {
  :root { --page: calc(100vw - 40px); }

  .site-header { height: 66px; padding: 0 20px; }
  .site-header.scrolled { height: 60px; }
  .brand { width: 126px; }
  .menu-toggle { width: 38px; height: 38px; }
  .mobile-menu { padding: 88px 22px 32px; }
  .mobile-menu a { padding: 19px 0; font-size: 25px; }

  .hero { height: 100svh; min-height: 640px; }
  .hero-image { object-position: center center; }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.18)),
                linear-gradient(0deg, rgba(0,0,0,.72), transparent 58%);
  }
  .hero-content { padding: 96px 0 26px; }
  .hero-copy { margin: auto 0 18vh; }
  .hero h1 { max-width: 330px; font-size: clamp(52px, 15vw, 66px); letter-spacing: .025em; line-height: 1.08; }
  .hero-intro { max-width: 310px; margin-top: 25px; font-size: 12px; line-height: 1.85; }
  .hero-footer { padding-top: 15px; }

  .section { padding: 82px 0; }
  .section-label { font-size: 9px; }
  .display-title { font-size: 34px !important; letter-spacing: .005em !important; line-height: 1.34 !important; }

  .intro-grid { margin-top: 38px; gap: 34px; }
  .intro-copy { padding-top: 0; }
  .intro-copy p { font-size: 13px; line-height: 1.9; }
  .nationwide-badge { margin-top: 28px; padding: 20px; }
  .capability-line { margin-top: 52px; font-size: 7px; letter-spacing: .08em; }
  .capability-line i { width: 12px; }

  .section-top {
    display: flex; min-height: 0; margin-bottom: 42px;
    flex-direction: column; align-items: center;
  }
  .section-top > .section-label { position: static; align-self: flex-start; }
  .section-top > div:last-child { margin-top: 32px; }
  .work-heading { text-align: center; }
  .section-top h2 { margin-bottom: 9px; font-size: 36px; }
  .section-top > div:last-child p { font-size: 11px; }
  .project-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-media { aspect-ratio: 1.32 / 1; }
  .project-media > span { display: none; }
  .project-info { padding-top: 14px; }
  .project-info h3 { max-width: 300px; margin-top: 7px; font-size: 18px; line-height: 1.45; letter-spacing: 0; }
  .project-info small { font-size: 7px; letter-spacing: .11em; }

  .services { padding: 82px 20px; gap: 50px; }
  .services-brand {
    top: 145px; right: -58px; left: auto; width: 235px;
    transform: rotate(90deg);
    transform-origin: center;
  }
  .services-brand img { opacity: .065; }
  .services-intro h2 { margin: 38px 0 22px; }
  .services-intro > p { max-width: 310px; font-size: 12px; }
  .service-list article {
    min-height: 118px; padding: 24px 0; grid-template-columns: 32px 1fr;
  }
  .service-list small { display: none; }
  .service-list h3 { margin-bottom: 9px; font-size: 22px; }
  .service-list p { padding-right: 5px; font-size: 11px; line-height: 1.65; }

  .feature { height: 78svh; min-height: 560px; }
  .feature > img { object-position: center center; }
  .feature-overlay { background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.05) 70%); }
  .feature-copy { right: 20px; bottom: 9%; left: 20px; }
  .feature-copy h2 { font-size: 36px !important; }

  .clients-grid { margin-top: 42px; grid-template-columns: repeat(2, 1fr); }
  .client { min-height: 102px; padding: 18px 12px; }
  .client:nth-child(4n) { border-right: 1px solid var(--line); }
  .client:nth-child(2n) { border-right: 0; }
  .client img { max-width: 78%; max-height: 45px; }
  .client img.logo-square { max-width: 62px; max-height: 62px; }
  .client img.logo-portrait { max-width: 90px; max-height: 58px; }
  .client img.logo-short { max-width: 112px; max-height: 42px; }
  .client-more { height: 66px; }
  .section-more { height: 70px; }

  .contact-main { margin-top: 42px; gap: 44px; }
  .contact h2 { font-size: 40px !important; }
  .contact-link { padding: 20px 0; }
  .contact-link span { margin-bottom: 20px; }
  .contact-link strong { font-size: 21px; }
  .contact-bottom { margin-top: 62px; grid-template-columns: 1fr; gap: 38px; }
  .contact-details { grid-template-columns: 1fr; gap: 23px; }
  .contact-details p { font-size: 14px; }
  .qr-card { width: 116px; justify-self: start; }

  footer {
    min-height: 150px; padding: 28px 20px 26px; grid-template-columns: 1fr;
    gap: 12px; align-content: center; align-items: start;
  }
  footer img { width: 126px; }
  footer p { max-width: 300px; line-height: 1.55; }
  footer a { display: none; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .tech-title .tech-char,
  .tech-copy .tech-char { opacity: 1; transform: none; filter: none; }
}
