:root {
  --ink: #edf1ee;
  --muted: #aeb8b2;
  --dim: #77847d;
  --line: rgba(237, 241, 238, 0.14);
  --panel: #172320;
  --panel-strong: #1d2c28;
  --base: #0d1413;
  --base-soft: #111b19;
  --accent: #d46a46;
  --accent-soft: rgba(212, 106, 70, 0.18);
  --mist: rgba(237, 241, 238, 0.72);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  overflow-y: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(212, 106, 70, 0.12), transparent 28rem),
    linear-gradient(180deg, #0d1413 0%, #101a18 46%, #0d1413 100%);
  font-family: "Avenir Next", "Helvetica Neue", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-y: auto;
}

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

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

.scroll-sentinel {
  position: absolute;
  top: 72px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-height: 76px;
  padding: 18px clamp(22px, 6vw, 92px);
  color: var(--ink);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 20, 19, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark,
.hero-logo {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: rgba(237, 241, 238, 0.08);
  border: 1px solid rgba(237, 241, 238, 0.34);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  gap: clamp(16px, 3vw, 38px);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.desktop-nav a {
  color: rgba(237, 241, 238, 0.78);
}

.desktop-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.lang-toggle {
  min-width: 46px;
  height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(237, 241, 238, 0.08);
  border: 1px solid rgba(237, 241, 238, 0.28);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--accent);
  border-color: rgba(212, 106, 70, 0.62);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 92px clamp(20px, 6vw, 92px) 52px;
  background:
    linear-gradient(90deg, rgba(13, 20, 19, 0.78), rgba(13, 20, 19, 0.42)),
    url("assets/hero-industrial-ai.png") center / cover no-repeat,
    var(--base);
}

.hero::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(212, 106, 70, 0.18), transparent 22rem),
    linear-gradient(180deg, transparent 68%, var(--base) 100%);
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
  text-align: center;
}

.hero-logo {
  width: clamp(104px, 13vw, 156px);
  height: clamp(104px, 13vw, 156px);
  color: var(--ink);
  border: 6px solid rgba(237, 241, 238, 0.52);
  background: rgba(13, 20, 19, 0.28);
  font-size: clamp(58px, 7vw, 88px);
  box-shadow: inset 0 0 0 10px rgba(237, 241, 238, 0.06);
}

.hero-kicker {
  margin: 22px 0 8px;
  color: var(--mist);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 96px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-line {
  width: 64px;
  height: 4px;
  margin: 22px 0;
  background: var(--accent);
}

.hero-lede {
  max-width: 680px;
  margin: 0;
  color: rgba(237, 241, 238, 0.9);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
}

.section-panel,
.timeline-section,
.quality-section,
.environment-section,
.contact-section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 92px);
}

.section-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border: 1px solid rgba(212, 106, 70, 0.5);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.section-copy {
  max-width: 860px;
}

.section-copy.narrow {
  max-width: 690px;
}

.section-copy h2,
.timeline-intro h2,
.quality-copy h2,
.environment-caption h2,
.contact-heading h2 {
  margin: 18px 0 0;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy p,
.quality-copy p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: end;
}

.proof-rail {
  display: grid;
  gap: 12px;
}

.proof-rail article {
  padding: 22px;
  background: linear-gradient(135deg, rgba(237, 241, 238, 0.08), rgba(237, 241, 238, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.proof-rail strong {
  display: block;
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.proof-rail span {
  display: block;
  margin-top: 10px;
  color: var(--dim);
  font-weight: 800;
}

.timeline-section {
  background: var(--base-soft);
}

.timeline-intro {
  max-width: 780px;
  margin-bottom: 46px;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.timeline-track article {
  min-height: 300px;
  padding: clamp(24px, 4vw, 38px);
  background: #121d1b;
}

.timeline-track time {
  color: var(--accent);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
}

.timeline-track h3,
.service-tile h3,
.quality-stage h3,
.contact-cards h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.24;
}

.timeline-track p,
.service-tile p,
.contact-cards p {
  margin: 0;
  color: var(--muted);
}

.service-bento {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 44px;
}

.service-tile {
  position: relative;
  display: grid;
  min-height: 320px;
  overflow: hidden;
  padding: 24px;
  align-content: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-tile.large {
  grid-row: span 2;
  min-height: 656px;
}

.service-tile.wide {
  grid-column: span 2;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  min-height: 340px;
}

.service-tile.dark {
  background: linear-gradient(135deg, rgba(212, 106, 70, 0.18), rgba(29, 44, 40, 0.92));
}

.service-tile img {
  width: 100%;
  height: min(28vw, 360px);
  min-height: 240px;
  object-fit: cover;
  margin-bottom: 22px;
  border-radius: calc(var(--radius) - 4px);
}

.service-tile.wide img {
  margin-bottom: 0;
}

.service-tile span,
.contact-cards span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.quality-section {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 8% 18%, rgba(212, 106, 70, 0.12), transparent 24rem),
    var(--base-soft);
}

.quality-stage {
  display: grid;
  grid-template-columns: 0.92fr 0.72fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.quality-stage figure {
  margin: 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quality-stage figure:nth-child(2) {
  margin-top: 68px;
}

.quality-stage figure:nth-child(3) {
  margin-top: 28px;
}

.quality-stage img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: rgba(237, 241, 238, 0.92);
  border-radius: calc(var(--radius) - 6px);
}

.quality-stage figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 900;
}

.environment-section {
  padding-inline: 0;
}

.environment-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1fr 0.78fr 1fr 0.75fr;
  gap: 10px;
  padding-inline: clamp(20px, 6vw, 92px);
}

.environment-strip img {
  width: 100%;
  height: clamp(260px, 36vw, 520px);
  object-fit: cover;
  border-radius: var(--radius);
}

.environment-strip img:nth-child(even) {
  margin-top: 54px;
}

.environment-caption {
  max-width: 760px;
  margin: 48px clamp(20px, 6vw, 92px) 0 auto;
}

.contact-section {
  background:
    linear-gradient(rgba(13, 20, 19, 0.82), rgba(13, 20, 19, 0.94)),
    url("assets/legacy/image-Newpic-Huanjing-007.gif") center / cover no-repeat;
}

.contact-heading {
  max-width: 920px;
  margin-bottom: 42px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-cards article {
  padding: clamp(24px, 4vw, 38px);
  background: rgba(237, 241, 238, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.contact-cards a {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 92px);
  color: rgba(237, 241, 238, 0.68);
  background: #0a100f;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .about-section,
  .quality-section,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .timeline-track,
  .service-bento,
  .quality-stage {
    grid-template-columns: 1fr;
  }

  .service-tile.large,
  .service-tile.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 320px;
  }

  .service-tile.wide {
    display: grid;
  }

  .quality-stage figure:nth-child(2),
  .quality-stage figure:nth-child(3) {
    margin-top: 0;
  }

  .environment-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    max-height: none;
    padding: 16px;
  }

  .desktop-nav {
    order: 3;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .desktop-nav a {
    min-width: max-content;
    padding: 6px 10px;
    background: rgba(237, 241, 238, 0.1);
    border: 1px solid rgba(237, 241, 238, 0.18);
    border-radius: 999px;
  }

  .lang-toggle {
    margin-left: auto;
  }

  .hero {
    min-height: 92dvh;
    padding-top: 132px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .timeline-track article {
    min-height: auto;
  }

  .environment-strip {
    grid-template-columns: 1fr;
  }

  .environment-strip img,
  .environment-strip img:nth-child(even) {
    height: 260px;
    margin-top: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  .hero-logo {
    width: 98px;
    height: 98px;
    font-size: 54px;
  }

  .section-copy h2,
  .timeline-intro h2,
  .quality-copy h2,
  .environment-caption h2,
  .contact-heading h2 {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
