:root {
  --black: #090909;
  --deep: #151515;
  --gray: #777;
  --line: #d8d8d8;
  --light: #f4f4f2;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--light);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6vw 14px 2.5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: rgba(9, 9, 9, 0.78);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  height: 38px;
}

.logo img {
  display: block;
  width: 72px;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
  white-space: nowrap;
}

.logo-text strong {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.logo-text small {
  color: #bfbfbf;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.site-nav a {
  color: #e7e7e7;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 108vh;
  display: flex;
  align-items: center;
  padding: 150px 7vw 110px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(12, 12, 12, 0.74)),
    repeating-linear-gradient(90deg, #0c0c0c 0, #0c0c0c 1px, #151515 1px, #151515 150px);
  isolation: isolate;
  scroll-margin-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 78% 26%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.9), rgba(12, 12, 12, 0.72));
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0c0c0c;
}

.hero-slider-track {
  display: flex;
  width: 400%;
  height: 100%;
  transform: translateX(0);
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.hero-slide {
  flex: 0 0 25%;
  min-width: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  right: 7vw;
  top: 24vh;
  width: min(34vw, 520px);
  height: min(44vw, 600px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  transform: translateY(var(--hero-shift, 0));
  transition: transform 0.2s ease-out;
  animation: frameFloat 8s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: min(58vw, 820px);
  --hero-title-lift: -38px;
  transform: translateY(var(--hero-title-lift));
  animation: heroReveal 1s ease-out both;
}

.eyebrow,
.section-head p,
.case-card p,
.contact p {
  margin: 0;
  color: #8e8e8e;
  font-size: 12px;
  text-transform: uppercase;
}

.hero h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.08em;
  margin: 36px 0 0;
  font-size: clamp(64px, 10.8vw, 154px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
  text-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.hero-en {
  margin: 24px 0 0;
  color: #d8d8d8;
  font-size: clamp(24px, 3.8vw, 54px);
  font-weight: 700;
  line-height: 1;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 0;
  color: #efefef;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.25;
}

.hero-slogan::before {
  content: "";
  width: clamp(42px, 8vw, 120px);
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-slogan span:last-child {
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 66px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--white);
  font-size: 14px;
}

.btn.primary {
  color: var(--black);
  background: var(--white);
}

.btn.ghost {
  color: var(--white);
  background: transparent;
}

.hero-intro {
  position: absolute;
  right: 7vw;
  top: 24vh;
  z-index: 3;
  width: min(34vw, 520px);
  min-height: min(44vw, 600px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 3.2vw, 48px);
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-ideograph;
  transform: translateY(var(--hero-shift, 0));
  transition: transform 0.2s ease-out;
}

.hero-intro p {
  margin: 0;
}

.hero-line {
  position: absolute;
  left: 7vw;
  bottom: 54px;
  z-index: 3;
  width: calc(100% - 14vw);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.hero-line::after {
  content: "";
  display: block;
  width: 22%;
  height: 100%;
  background: rgba(255, 255, 255, 0.68);
  animation: lineScan 4.8s ease-in-out infinite;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(calc(var(--hero-title-lift) + 28px));
  }

  to {
    opacity: 1;
    transform: translateY(var(--hero-title-lift));
  }
}

@keyframes frameFloat {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(var(--hero-shift, 0));
  }

  50% {
    opacity: 1;
    transform: translateY(calc(var(--hero-shift, 0) - 14px));
  }
}

@keyframes lineScan {
  0% {
    transform: translateX(-120%);
  }

  55%,
  100% {
    transform: translateX(480%);
  }
}

.section {
  padding: 104px 6vw;
  scroll-margin-top: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
}

.service-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.service-item {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  order: 2;
  padding: 28px;
  border: 1px solid var(--black);
  background: var(--light);
  cursor: pointer;
  transition:
    background 0.35s ease,
    color 0.35s ease,
    min-height 0.35s ease;
}

.service-item.is-featured {
  grid-row: span 3;
  order: 1;
  min-height: 558px;
}

.service-item span {
  color: var(--gray);
  font-size: 13px;
}

.service-item h3 {
  margin: auto 0 18px;
  font-size: 25px;
  transition: font-size 0.35s ease;
}

.service-item p {
  margin: 0;
  color: #555;
  line-height: 1.8;
}

.service-item.is-featured:not(.image-service) {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    #151515;
  border-color: #333;
}

.service-item.is-featured:not(.image-service) span,
.service-item.is-featured:not(.image-service) p {
  color: #bdbdbd;
}

.service-item.is-featured h3 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
}

.image-service {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.image-service::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 72%);
  pointer-events: none;
}

.image-service:not(.is-featured)::after {
  background: rgba(0, 0, 0, 0.9);
}

.image-service > span,
.image-service h3,
.image-service p {
  position: relative;
  z-index: 2;
}

.image-service span,
.image-service p {
  color: rgba(255, 255, 255, 0.82);
}

.service-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  background: #111;
  cursor: pointer;
}

.service-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.service-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.cases {
  color: var(--white);
  background: var(--black);
}

.cases .section-head {
  border-color: #333;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.case-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid #333;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    #151515;
}

.case-card.featured {
  grid-row: span 2;
  min-height: 558px;
}

.case-card h3 {
  max-width: 560px;
  margin: 16px 0 0;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.14;
}

.case-card span {
  color: #bdbdbd;
  font-size: 14px;
}

.about-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-content > p {
  margin: 0;
  color: #333;
  font-size: 22px;
  line-height: 1.9;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.about-stats div {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--black);
}

.about-stats strong {
  display: block;
  margin-bottom: 30px;
  font-size: 34px;
}

.about-stats span {
  color: #555;
  font-size: 14px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 76px 6vw;
  color: var(--white);
  background: var(--deep);
  scroll-margin-top: 0;
}

.phone {
  flex: 0 0 auto;
  padding: 18px 28px;
  border: 1px solid #777;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 6vw;
  color: #666;
  background: var(--light);
  font-size: 13px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 87px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 6vw 24px;
    background: rgba(9, 9, 9, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid #222;
  }

  .service-grid,
  .case-grid,
  .about-content {
    grid-template-columns: 1fr;
  }

  .image-service {
    min-height: 220px;
  }

  .service-item.is-featured {
    grid-row: auto;
    min-height: 360px;
  }

  .case-card.featured {
    min-height: 360px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 5vw 12px 2.5vw;
  }

  .logo {
    gap: 10px;
    height: 34px;
  }

  .logo img {
    width: 58px;
  }

  .logo-text strong {
    font-size: 16px;
  }

  .logo-text small {
    font-size: 9px;
  }

  .hero,
  .section {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .hero {
    min-height: 96vh;
    padding-top: 128px;
    padding-bottom: 92px;
  }

  .hero::after {
    top: auto;
    right: 5vw;
    bottom: 104px;
    width: 58vw;
    height: 62vw;
  }

  .hero h1 {
    display: block;
    margin-top: 30px;
    font-size: clamp(58px, 18vw, 88px);
    line-height: 0.96;
  }

  .hero h1 span {
    display: block;
  }

  .hero-en {
    margin-top: 22px;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.08;
  }

  .hero-slogan {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    font-size: clamp(20px, 5.6vw, 26px);
  }

  .hero-slogan::before {
    width: 64px;
  }

  .hero-actions {
    margin-top: 48px;
  }

  .hero-inner {
    max-width: 100%;
    --hero-title-lift: -24px;
  }

  .hero-intro {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: auto;
    margin-top: 30px;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
    line-height: 1.85;
    transform: none;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    margin-top: 10px;
  }

  .service-item,
  .case-card {
    padding: 22px;
  }

  .service-item {
    min-height: 220px;
  }

  .image-service {
    min-height: 220px;
  }

  .service-item.is-featured {
    min-height: 360px;
  }

  .service-item h3 {
    margin-top: 48px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
