:root {
  --seal: #c22617;
  --ink: #1c1c1c;
  --charcoal: #3a3a3a;
  --rice: #f8f6f2;
  --paper: #fcfbf8;
  --line: #eceae6;
  --gold: #b89b5e;
  --shadow: 0 28px 80px rgba(28, 28, 28, 0.1);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

.nowrap {
  white-space: nowrap;
}

.brand strong,
.brand em,
.eyebrow,
.btn,
.timeline h3,
.service-card h3,
.metrics span,
.values span,
.site-footer small {
  word-break: keep-all;
  overflow-wrap: normal;
}

#inkCanvas,
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#inkCanvas {
  z-index: 0;
  opacity: 0.42;
}

.paper-grain {
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 18% 22%, rgba(184, 155, 94, 0.08), transparent 23%),
    radial-gradient(circle at 78% 16%, rgba(194, 38, 23, 0.05), transparent 18%),
    repeating-linear-gradient(90deg, rgba(28, 28, 28, 0.018) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(28, 28, 28, 0.014) 0 1px, transparent 1px 9px);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  height: 70px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid rgba(218, 214, 205, 0.9);
  border-radius: 999px;
  background: rgba(252, 251, 248, 0.9);
  box-shadow: 0 16px 54px rgba(28, 28, 28, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.35s ease, box-shadow 0.35s ease, top 0.35s ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(252, 251, 248, 0.96);
  box-shadow: 0 18px 70px rgba(28, 28, 28, 0.12);
}

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

.seal-mark,
.footer-seal {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--seal);
  font-family: "STKaiti", "KaiTi", serif;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.brand-logo {
  width: 38px;
  height: 38px;
  inline-size: 38px;
  block-size: 38px;
  min-width: 38px;
  max-width: 38px;
  min-height: 38px;
  max-height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(218, 214, 205, 0.92);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 8px 22px rgba(28, 28, 28, 0.08);
}

.seal-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 22px;
  transform: rotate(-5deg);
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand em {
  margin-top: -3px;
  color: rgba(28, 28, 28, 0.5);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

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

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(28, 28, 28, 0.82);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-nav a:hover {
  color: var(--seal);
  background: rgba(194, 38, 23, 0.07);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(194, 38, 23, 0.09);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--seal);
  transition: transform 0.25s ease;
}

.section,
.section-full {
  width: 100%;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 28px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 130px max(28px, calc((100vw - var(--max)) / 2)) 80px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 6% 8% auto;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 38, 23, 0.1), transparent 62%);
  filter: blur(8px);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.06);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(252, 251, 248, 0.96) 0%, rgba(252, 251, 248, 0.82) 42%, rgba(252, 251, 248, 0.48) 100%),
    linear-gradient(180deg, rgba(252, 251, 248, 0.22), var(--paper));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--seal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: 0;
  max-width: 100%;
  min-width: 0;
}

h1 > span {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(46px, 5.2vw, 72px);
  line-height: 1.12;
  color: transparent;
  background: linear-gradient(110deg, var(--ink), var(--seal) 45%, var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: normal;
}

.hero-copy {
  max-width: 650px;
  color: rgba(28, 28, 28, 0.72);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.78;
}

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

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(194, 38, 23, 0.28);
  border-radius: 999px;
  overflow: hidden;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: var(--seal);
  box-shadow: 0 16px 38px rgba(194, 38, 23, 0.22);
}

.btn-secondary {
  color: var(--seal);
  background: rgba(252, 251, 248, 0.72);
  backdrop-filter: blur(14px);
}

.ink-btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--y, 50%) auto auto var(--x, 50%);
  width: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 28, 28, 0.28), rgba(194, 38, 23, 0.55), transparent 68%);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 38, 23, 0.5);
}

.ink-btn:hover::before {
  width: 260px;
}

.scroll-cue {
  position: absolute;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(28, 28, 28, 0.42);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue span {
  width: 42px;
  height: 1px;
  background: currentColor;
}

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head h2,
.advantage-copy h2,
.philosophy h2,
.contact h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.16;
  font-weight: 650;
  letter-spacing: 0;
}

.section-head p,
.advantage-copy p {
  color: rgba(28, 28, 28, 0.65);
  font-size: 18px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article,
.service-card,
.metrics article,
.contact-panel {
  border: 1px solid rgba(236, 234, 230, 0.9);
  background: rgba(252, 251, 248, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.timeline article {
  min-width: 0;
  min-height: 230px;
  padding: 30px;
  border-radius: 8px;
}

.timeline span,
.service-card span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--seal);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
}

.timeline h3,
.service-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 650;
  white-space: nowrap;
}

.timeline p,
.service-card p {
  color: rgba(28, 28, 28, 0.63);
}

.focus-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.focus-strip span {
  padding: 10px 16px;
  border: 1px solid rgba(184, 155, 94, 0.28);
  border-radius: 999px;
  color: rgba(28, 28, 28, 0.72);
  background: rgba(248, 246, 242, 0.58);
  white-space: nowrap;
}

.services {
  padding-top: 80px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-width: 0;
  min-height: 285px;
  padding: 34px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% 30%;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 38, 23, 0.13), transparent 66%);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 38, 23, 0.25);
  box-shadow: 0 30px 90px rgba(28, 28, 28, 0.15);
}

.service-card:hover::before {
  opacity: 1;
  transform: translateY(-18px);
}

.advantages {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 46px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.metrics article {
  min-width: 0;
  min-height: 170px;
  padding: 28px;
  border-radius: 8px;
}

.metrics strong {
  display: block;
  margin-bottom: 14px;
  color: var(--seal);
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  font-weight: 700;
}

.metrics span {
  color: rgba(28, 28, 28, 0.62);
  font-size: 17px;
  white-space: nowrap;
}

.philosophy {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  padding: 120px 28px;
  overflow: hidden;
  background: var(--ink);
}

.philosophy-bg {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.4), rgba(28, 28, 28, 0.82)),
    url("assets/ink-landscape.png") center / cover no-repeat;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.5;
  transform: translateY(var(--parallax, 0px)) scale(1.05);
}

.philosophy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(194, 38, 23, 0.18), transparent 36%);
}

.philosophy-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
  color: var(--paper);
}

.philosophy h2 {
  font-size: clamp(46px, 8vw, 104px);
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.values span {
  padding: 12px 18px;
  border: 1px solid rgba(252, 251, 248, 0.18);
  border-radius: 999px;
  color: rgba(252, 251, 248, 0.82);
  background: rgba(252, 251, 248, 0.08);
  backdrop-filter: blur(14px);
  white-space: nowrap;
}

.process-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.process-line::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 9%;
  right: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 38, 23, 0.55), transparent);
}

.process-line article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  padding-top: 4px;
}

.process-line b {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(194, 38, 23, 0.22);
  border-radius: 50%;
  color: var(--seal);
  background: rgba(252, 251, 248, 0.86);
  box-shadow: 0 18px 48px rgba(28, 28, 28, 0.08);
}

.process-line span {
  color: rgba(28, 28, 28, 0.72);
  font-weight: 700;
  text-align: center;
}

.contact {
  padding-top: 80px;
}

.contact-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 34px;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 8px;
}

.en-name {
  color: rgba(28, 28, 28, 0.56);
}

address {
  display: grid;
  align-content: center;
  gap: 12px;
  color: rgba(28, 28, 28, 0.72);
  font-style: normal;
}

.contact-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 76px 28px 44px;
  color: rgba(252, 251, 248, 0.78);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(194, 38, 23, 0.2), transparent 28%),
    var(--ink);
}

.footer-seal,
.footer-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.footer-seal {
  font-size: 24px;
  transform: rotate(-4deg);
}

.footer-logo {
  inline-size: 60px;
  block-size: 60px;
  min-width: 60px;
  max-width: 60px;
  min-height: 60px;
  max-height: 60px;
  flex: 0 0 auto;
  border: 1px solid rgba(252, 251, 248, 0.22);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.site-footer h2 {
  margin: 0;
  color: var(--paper);
  font-size: 24px;
  font-weight: 650;
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer small {
  line-height: 1.7;
}

.icp-record {
  color: rgba(252, 251, 248, 0.64);
  white-space: nowrap;
}

.site-footer strong {
  color: var(--paper);
  font-weight: 600;
  max-width: min(100%, 760px);
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes slowDrift {
  from {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.5%, 1%, 0);
  }
}

@media (max-width: 980px) {
  .site-header {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(236, 234, 230, 0.9);
    border-radius: 24px;
    background: rgba(252, 251, 248, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 16px;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .timeline,
  .service-grid,
  .advantages,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .process-line {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-line::before {
    top: 0;
    bottom: 0;
    left: 39px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(194, 38, 23, 0.5), transparent);
  }

  .process-line article {
    grid-template-columns: 78px 1fr;
    justify-items: start;
    align-items: center;
  }

  .process-line span {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 0 10px 0 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand em {
    display: none;
  }

  .seal-mark {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    inline-size: 34px;
    block-size: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
  }

  .hero {
    min-height: 92svh;
    padding: 110px 22px 70px;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(252, 251, 248, 0.84), rgba(252, 251, 248, 0.8) 44%, var(--paper)),
      linear-gradient(90deg, rgba(252, 251, 248, 0.92), rgba(252, 251, 248, 0.42));
  }

  h1 {
    font-size: clamp(42px, 13vw, 54px);
  }

  h1 > span {
    font-size: clamp(30px, 10vw, 40px);
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding: 82px 22px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .timeline article,
  .service-card,
  .metrics article {
    min-height: auto;
    padding: 24px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .philosophy {
    min-height: 470px;
    padding: 90px 22px;
  }

  .values {
    align-items: center;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  #inkCanvas {
    display: none;
  }
}
