:root {
  --bg-black: #080304;
  --bg-dark-red: #160405;
  --bg-card: rgba(20, 6, 7, 0.82);
  --bg-card-hover: rgba(35, 8, 8, 0.92);
  --red-deep: #2A0606;
  --red-mid: #57110B;
  --orange-main: #F04A22;
  --orange-light: #FF7846;
  --orange-glow: rgba(255, 82, 38, 0.36);
  --text-main: #FFF7EF;
  --text-secondary: rgba(255, 235, 220, 0.72);
  --text-muted: rgba(255, 220, 195, 0.54);
  --line-subtle: rgba(255, 104, 56, 0.20);
  --line-hover: rgba(255, 119, 70, 0.58);
  --color-bg: #1B0809;
  --color-bg-deep: #080304;
  --color-surface: #26090B;
  --color-surface-soft: #3A0D0F;
  --color-red: #8E1016;
  --color-orange: #F36A21;
  --color-copper: #C07A45;
  --color-text: #FFF2E8;
  --color-text-soft: #D8B8A5;
  --color-line: rgba(255, 242, 232, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 10%, rgba(243, 106, 33, .18), transparent 28%),
    radial-gradient(circle at 14% 44%, rgba(142, 16, 22, .34), transparent 34%),
    var(--color-bg-deep);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(100% - 44px, var(--container)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(8, 3, 4, 0.96);
  border-bottom: 1px solid rgba(255, 94, 48, 0.15);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { background: rgba(8, 3, 4, .98); }
.nav {
  width: min(100% - 44px, var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: var(--text-main); font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.nav-menu { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; color: rgba(255, 235, 220, 0.76); font-size: 16px; font-weight: 500; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--orange-light); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--color-line); background: rgba(37, 17, 18, .72); }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 7px auto; background: var(--color-text); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    url("./images/hero-tech.webp") 58% center / cover no-repeat,
    #160D0D;
  margin: 0;
  padding: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(14, 9, 9, 0.88) 0%,
      rgba(14, 9, 9, 0.55) 26%,
      rgba(14, 9, 9, 0.12) 58%,
      rgba(14, 9, 9, 0.32) 100%
    );
}
.hero-tech-accent {
  position: absolute;
  inset: 118px 64px 64px auto;
  z-index: 1;
  width: min(280px, 22vw);
  pointer-events: none;
  opacity: .78;
}
.hero-tech-accent span {
  position: absolute;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(243, 106, 33, .18);
}
.hero-tech-accent span:nth-child(1) { top: 8%; }
.hero-tech-accent span:nth-child(2) { top: 48%; }
.hero-tech-accent span:nth-child(3) { bottom: 8%; }
.hero-content {
  position: absolute;
  left: clamp(28px, 6vw, 112px);
  top: 50%;
  z-index: 1;
  width: min(360px, calc(100% - 56px));
  margin: 0;
  padding: 28px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  backdrop-filter: none;
  animation: heroCopyRise .8s ease both;
}
.hero-content > * { max-width: 100%; }
.eyebrow { margin: 0 0 14px; color: var(--color-orange); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.hero h1 { margin: 0; color: #F7F0E8; font-size: 64px; line-height: 1.08; font-weight: 800; letter-spacing: .02em; text-shadow: 0 18px 54px rgba(0, 0, 0, .54); word-break: keep-all; white-space: nowrap; }
.hero-subtitle { margin: 24px 0 0; color: var(--color-text); font-size: 27px; line-height: 1.55; font-weight: 500; text-shadow: 0 12px 34px rgba(0, 0, 0, .5); word-break: keep-all; }
.hero-keywords { margin: 20px 0 0; color: var(--color-text-soft); font-size: 16px; line-height: 1.5; letter-spacing: 2px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-work-panel {
  position: absolute;
  right: clamp(34px, 5vw, 88px);
  top: 21%;
  width: min(250px, 18vw);
  min-height: 300px;
  padding: 24px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F7F0E8;
  background: transparent;
  border: 0;
  letter-spacing: .14em;
}
.hero-work-panel span { color: var(--color-orange); font-size: 12px; font-weight: 700; }
.hero-work-panel strong { max-width: 10ch; font-size: 28px; line-height: 1.15; font-weight: 560; }
.hero-work-panel p { margin: 0; color: var(--color-text-soft); font-size: 12px; line-height: 2; letter-spacing: .18em; }
.person-label {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  color: #FFF7EE;
  font-family: "Source Han Serif SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.person-label span {
  display: block;
  width: 1em;
  height: 1.35em;
  font: inherit;
  line-height: 1.35;
  text-align: center;
}
.person-label-left { left: 47.2%; top: 34%; }
.person-label-right { left: 76.4%; top: 35%; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--color-copper);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--color-orange); }
.btn-primary {
  background: linear-gradient(135deg, #F36A21, #C92218);
  border-color: rgba(255, 242, 232, .18);
  box-shadow: inset 0 1px 0 rgba(255, 242, 232, .18), 0 18px 44px rgba(243, 106, 33, .22);
}
.btn-secondary { background: rgba(8, 3, 4, .36); }
.btn-call { margin-top: 20px; background: var(--color-orange); border-color: var(--color-orange); }

.section { margin: 0; padding: 116px 0; border-top: 1px solid var(--color-line); background: #160D0D; }
.hero + section { margin-top: 0; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.08; font-weight: 560; letter-spacing: .08em; }
.section-heading.wide { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 46px; }

.about { background: linear-gradient(180deg, rgba(14, 9, 9, 1) 0%, rgba(22, 13, 13, 1) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: .74fr 1.08fr .9fr;
  gap: 42px;
  align-items: end;
}
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.about-copy { padding: 34px 0; color: var(--color-text-soft); font-size: 20px; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.about-copy p { margin: 0; }

.expertise { background: radial-gradient(circle at 82% 18%, rgba(243, 106, 33, .12), transparent 30%), var(--color-bg-deep); }
.expertise-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 520px;
  border: 1px solid var(--color-line);
}
.expertise-wall article { position: relative; overflow: hidden; border-right: 1px solid var(--color-line); }
.expertise-wall article:last-child { border-right: 0; }
.expertise-wall img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .55s ease, opacity .3s ease; }
.expertise-wall article::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(14, 9, 9, .82)); }
.expertise-wall div { position: absolute; left: 26px; right: 26px; bottom: 28px; z-index: 1; }
.expertise-wall span, .strength-list span { color: var(--color-orange); font-weight: 700; }
.expertise-wall h3 { margin: 8px 0 0; font-size: 28px; font-weight: 520; }
.expertise-wall article:hover img { transform: scale(1.06); opacity: .95; }

.works {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 52% 10%,
      rgba(150, 30, 10, 0.18) 0%,
      rgba(50, 5, 5, 0.10) 34%,
      transparent 62%
    ),
    linear-gradient(
      180deg,
      #090304 0%,
      #160405 42%,
      #080304 100%
    );
}
.works::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(255, 104, 56, .22) 7.1% 7.3%, transparent 7.4% 100%),
    linear-gradient(0deg, transparent 0 18%, rgba(255, 104, 56, .18) 18.1% 18.2%, transparent 18.3% 100%),
    radial-gradient(circle at 18% 24%, rgba(255, 104, 56, .58) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 36%, rgba(255, 104, 56, .5) 0 1px, transparent 2px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 104, 56, .12) 43px, transparent 44px);
}
.works .container { position: relative; z-index: 1; }
.works-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  color: var(--color-text);
  text-align: left;
  border: 1px solid rgba(255, 104, 56, 0.18);
  border-radius: 0;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: transform 280ms ease; }
.work-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.05) 35%,
      rgba(5, 0, 0, 0.78) 100%
    );
}
.work-item span, .work-item strong { position: absolute; z-index: 1; left: 24px; right: 24px; }
.work-item span {
  bottom: 68px;
  color: var(--orange-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.work-item strong {
  bottom: 26px;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-item:hover {
  transform: translateY(-5px);
  border-color: var(--line-hover);
  background: var(--bg-card-hover);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 82, 38, 0.16);
}
.work-item:hover img { transform: scale(1.035); }

.strengths { background: radial-gradient(circle at 16% 10%, rgba(142, 16, 22, .32), transparent 34%), var(--color-bg-deep); }
.strength-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--color-line); }
.strength-list article { min-height: 260px; padding: 32px 26px; background: var(--color-surface); }
.strength-list h3 { margin: 16px 0 14px; font-size: 24px; font-weight: 540; }
.strength-list p { margin: 0; color: var(--color-text-soft); }

.service-system {
  background:
    radial-gradient(circle at 70% 50%, rgba(243, 106, 33, .2), transparent 34%),
    linear-gradient(135deg, #1B0809, #3A0D0F 64%, #080304);
}
.system-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.system-list {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
}
.system-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 128px;
  margin: 0;
  padding: 30px 0;
  overflow: visible;
  background: transparent;
  border-top: 1px solid rgba(247, 240, 232, 0.16);
}
.system-list article:last-child { border-bottom: 1px solid rgba(247, 240, 232, 0.16); }
.system-list span {
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  white-space: nowrap;
}
.system-list div {
  max-width: 500px;
  padding-right: 8px;
  text-align: right;
  overflow: visible;
}
.system-list h3 {
  margin: 0 0 8px;
  color: var(--color-text);
  font-size: 22px;
  font-weight: 540;
  line-height: 1.3;
  white-space: nowrap;
  word-break: keep-all;
}
.system-list p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.contact { background: linear-gradient(180deg, #080304, #1B0809); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
.contact h2 { margin: 0 0 28px; font-size: clamp(38px, 5vw, 62px); }
.contact-lines { color: var(--color-text-soft); border-top: 1px solid var(--color-line); padding-top: 26px; }
.contact-lines a:not(.btn) { color: var(--color-text); }
.contact-form { display: grid; gap: 18px; padding: 34px; background: var(--color-surface); border: 1px solid var(--color-line); }
.contact-form label { display: grid; gap: 8px; color: var(--color-copper); }
input, textarea { width: 100%; border: 1px solid var(--color-line); background: rgba(14, 9, 9, .46); color: var(--color-text); padding: 13px 14px; }
textarea { resize: vertical; }
.form-note { margin: 0; color: var(--color-orange); }

.preview-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(14, 9, 9, .72); backdrop-filter: blur(12px); }
.preview-panel { position: relative; width: min(980px, 100%); max-height: calc(100svh - 48px); overflow: auto; padding: 38px; background: var(--color-surface); border: 1px solid var(--color-line); }
.preview-panel h3 { margin: 0 0 12px; font-size: 30px; }
.preview-panel p:last-child { margin: 0; color: var(--color-text-soft); }
.modal-image {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 18px;
}
.modal-image img {
  display: block;
  width: 100%;
  max-height: min(76svh, 820px);
  object-fit: contain;
  background: var(--bg-black);
  border: 1px solid var(--line-subtle);
}
.modal-close { position: absolute; top: 14px; right: 16px; color: var(--color-text); background: none; border: 0; font-size: 30px; cursor: pointer; }

.site-footer { padding: 34px 0; background: #090505; border-top: 1px solid var(--color-line); color: var(--color-text-soft); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; }
.footer-grid strong { color: var(--color-text); letter-spacing: .1em; }
.footer-grid p { margin: 0; }
.footer-grid a { color: var(--color-text); }
.mobile-call {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background: var(--color-orange);
  border: 1px solid rgba(247, 240, 232, .2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

@keyframes fadeRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes heroCopyRise { from { opacity: 0; transform: translateY(calc(-50% + 18px)); } to { opacity: 1; transform: translateY(-50%); } }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 22px;
    right: 22px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    background: rgba(14, 9, 9, .94);
    border: 1px solid var(--color-line);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; padding: 13px 8px; }
  .about-grid, .system-grid, .contact-grid { grid-template-columns: 1fr; }
  .expertise-wall, .strength-list { grid-template-columns: repeat(2, 1fr); }
  .works-wall { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container, .nav { width: min(100% - 28px, var(--container)); }
  .nav { height: 68px; }
  .nav-menu { top: 68px; left: 14px; right: 14px; }
  .hero {
    min-height: 100svh;
    background-position: 56% center;
  }
  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(14, 9, 9, 0.78) 0%,
        rgba(14, 9, 9, 0.42) 44%,
        rgba(14, 9, 9, 0.14) 100%
      );
  }
  .hero-tech-accent { display: none; }
  .person-label { display: none; }
  .hero-content {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 74px;
    width: auto;
    padding: 22px 20px;
    transform: none;
    animation: fadeRise .8s ease both;
  }
  .hero h1 { font-size: 48px; }
  .hero-subtitle { font-size: 22px; line-height: 1.5; }
  .hero-keywords { font-size: 14px; line-height: 1.5; letter-spacing: 2px; }
  .hero-work-panel { display: none; }
  .section { padding: 78px 0; }
  .section-heading.wide { display: block; }
  .about-image img { aspect-ratio: 4 / 3; }
  .expertise-wall, .works-wall, .strength-list { grid-template-columns: 1fr; }
  .expertise-wall { min-height: 0; }
  .expertise-wall article { min-height: 360px; border-right: 0; border-bottom: 1px solid var(--color-line); }
  .work-item { grid-column: span 1; grid-row: span 1; min-height: 0; }
  .system-list { padding: 0 22px; }
  .system-list article { display: block; padding: 22px 0; }
  .system-list div { max-width: none; padding-right: 0; text-align: left; }
  .system-list span { display: block; margin-bottom: 10px; }
  .system-list h3 { white-space: normal; }
  .system-list p { word-break: normal; }
  .contact-form { padding: 24px; }
  .site-footer { padding-bottom: 92px; }
  .mobile-call { display: flex; }
}

