:root {
  --bg: #0e0e10;
  --paper: #17171a;
  --ink: #f3f0ea;
  --muted: #b7b2aa;
  --faint: #8d8882;
  --line: rgba(243, 240, 234, 0.12);
  --accent: #e10600;
  --header: 92px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background:
    radial-gradient(880px 420px at 100% -8%, rgba(225, 6, 0, 0.18), transparent 58%),
    radial-gradient(640px 380px at -12% 22%, rgba(225, 6, 0, 0.07), transparent 52%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(243, 240, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 234, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(#000, transparent 42%);
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

img { max-width: 100%; }

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

button { font: inherit; }

::selection {
  background: rgba(225, 6, 0, 0.35);
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(14, 14, 16, 0.9);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 68px;
  width: auto;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); }

.site-nav a:hover::after,
.site-nav a:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.hero {
  padding: calc(var(--header) + 36px) 0 28px;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

.sheet,
.card,
.scene,
.connect-item,
.step,
.about-copy,
.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.sheet {
  padding: 42px 42px 0;
  background:
    radial-gradient(520px 240px at 100% 0%, rgba(225, 6, 0, 0.16), transparent 62%),
    linear-gradient(180deg, #1d1d21 0%, #141416 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: end;
}

.hero-panel {
  position: relative;
  min-height: 300px;
  padding: 28px 26px;
  border-radius: 14px;
  border: 1px solid rgba(225, 6, 0, 0.28);
  background:
    linear-gradient(165deg, rgba(225, 6, 0, 0.28), transparent 46%),
    #101012;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-lines {
  position: absolute;
  top: 28px;
  right: -10px;
  width: 168px;
  height: 54px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 100% 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 14px 20px / 82% 7px no-repeat,
    linear-gradient(#ff4a3a, #ff4a3a) 28px 40px / 64% 7px no-repeat;
  transform: skewX(-16deg);
}

.panel-en,
.panel-note {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.panel-title {
  margin: 10px 0 16px;
  font-size: 32px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.hero-en,
.en,
.service-row small {
  color: var(--faint);
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-en {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
}

.eyebrow {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.16em;
}

.hero h1,
.about-copy h2,
.section-head h2 {
  margin: 0;
  font-weight: 560;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.hero h1 { font-size: clamp(44px, 6vw, 68px); }

.company {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #ff3b30 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(243, 240, 234, 0.28);
  color: var(--ink);
}

.btn:focus-visible,
.nav-toggle:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 40px -48px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-row li {
  position: relative;
  padding: 22px 20px 24px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  transition: background 0.25s var(--ease);
}

.service-row li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.service-row li:hover { background: rgba(225, 6, 0, 0.08); }
.service-row li:hover::after { transform: scaleX(1); }

.service-row li:first-child { border-left: 0; }

.service-row span,
.card-index,
.step-index,
.section-index {
  display: block;
  color: var(--accent);
  font-family: "Avenir Next", "DIN Alternate", "Segoe UI", sans-serif;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.section-index { font-size: clamp(72px, 9vw, 104px); }

.service-row span,
.card-index,
.step-index { font-size: 48px; }

.service-row small,
.en { display: block; margin-top: 10px; }

.service-row span { margin-bottom: 0; }

.section { padding: 36px 0; }

#connect,
#scenes {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 70%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

.section-kicker {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.section-kicker .en { margin: 0 0 10px; }

.section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  padding-bottom: 8px;
  background: linear-gradient(90deg, var(--accent), transparent) left bottom / 72px 2px no-repeat;
}

.section-head p,
.card p,
.scene p,
.connect-item p,
.step p,
.about-copy p {
  margin: 0;
  color: var(--muted);
}

.cards,
.connect-grid,
.scene-grid,
.steps {
  display: grid;
  gap: 14px;
}

.cards,
.connect-grid { grid-template-columns: 1fr 1fr; }

.connect-grid { grid-template-columns: repeat(4, 1fr); }

.scene-grid { grid-template-columns: repeat(3, 1fr); }

.steps {
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card,
.scene,
.connect-item,
.step {
  position: relative;
  padding: 26px 24px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(225, 6, 0, 0.09), transparent 38%),
    var(--paper);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card { border-left: 3px solid var(--accent); }

.connect-item::before,
.scene::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.step::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -14px;
  width: 14px;
  height: 2px;
  background: rgba(225, 6, 0, 0.45);
}

.step:last-child::before { display: none; }

.card:hover,
.scene:hover,
.connect-item:hover,
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 6, 0, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.card h3,
.scene h3,
.connect-item h3,
.step h3 {
  margin: 8px 0 8px;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: 0.04em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.about-copy,
.contact-panel { padding: 32px 32px 28px; }

.about-copy h2 {
  margin: 4px 0 16px;
  font-size: clamp(28px, 4vw, 36px);
}

.address {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  background:
    linear-gradient(165deg, rgba(225, 6, 0, 0.2), transparent 48%),
    var(--paper);
  border-top: 3px solid var(--accent);
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.contact-value {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.contact-value:hover { color: var(--accent); }

.site-footer {
  padding: 8px 0 32px;
  color: var(--faint);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.rise { animation: rise 0.8s var(--ease) both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.26s; }
.d4 { animation-delay: 0.36s; }
.d5 { animation-delay: 0.46s; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal[data-d="1"] { transition-delay: 0.06s; }
.js .reveal[data-d="2"] { transition-delay: 0.12s; }
.js .reveal[data-d="3"] { transition-delay: 0.18s; }
.js .reveal[data-d="4"] { transition-delay: 0.24s; }
.js .reveal[data-d="5"] { transition-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; }
  .step::before { display: none; }

  .connect-grid,
  .steps,
  .service-row { grid-template-columns: 1fr 1fr; }

  .service-row li:nth-child(odd) { border-left: 0; }
  .service-row li { border-top: 1px solid var(--line); }
  .service-row li:nth-child(-n + 2) { border-top: 0; }

  .steps { grid-template-columns: 1fr 1fr; }
  .scene-grid,
  .about-grid,
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap,
  .header-inner { width: min(var(--max), calc(100% - 32px)); }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header) + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #141416;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

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

  .site-nav a { padding: 12px 14px; }

  .site-nav a::after { display: none; }

  .hero-layout,
  .about-grid { grid-template-columns: 1fr; }

  .hero-panel { min-height: 220px; }

  .step::before { display: none; }

  .sheet { padding: 28px 22px 0; }

  .service-row {
    grid-template-columns: 1fr;
    margin: 28px -22px 0;
  }

  .service-row li {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 22px;
  }

  .service-row li:first-child { border-top: 0; }

  .cards,
  .connect-grid,
  .scene-grid,
  .steps,
  .about-grid,
  .section-head { grid-template-columns: 1fr; }

  .section-index { font-size: 64px; }

  .service-row span,
  .card-index,
  .step-index { font-size: 40px; }

  .contact-value {
    font-size: 24px;
    word-break: break-all;
  }
}

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

  .rise,
  .js .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
