:root {
  --ink: #11100f;
  --paper: #f2efe9;
  --paper-2: #e6e0d7;
  --accent: #f15a24;
  --line: rgba(17, 16, 15, 0.2);
  --pad: clamp(22px, 4vw, 72px);
  --display: "Arial Narrow", "Roboto Condensed", "Noto Sans SC", "PingFang SC", sans-serif;
  --body: "Inter", "Helvetica Neue", "Noto Sans SC", "PingFang SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #d8d3cb;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body.menu-open,
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: white;
}
.skip-link:focus { top: 12px; }
.page-shell {
  width: min(100%, 1920px);
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
}
.section-pad { padding: clamp(90px, 12vw, 190px) var(--pad); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 50%;
  width: min(100%, 1920px);
  height: 84px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  color: var(--paper);
  mix-blend-mode: difference;
}
.brand { display: flex; align-items: flex-end; gap: 12px; }
.brand-cn { font-size: 22px; font-weight: 900; letter-spacing: -0.08em; }
.brand-en { margin-bottom: 2px; font-size: 8px; font-weight: 800; letter-spacing: 0.14em; }
.desktop-nav { display: flex; gap: 34px; font-size: 13px; font-weight: 700; }
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
}
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; border: 0; background: none; cursor: pointer; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: min(1000px, 100svh);
  padding: 120px var(--pad) 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 40%, rgba(241, 90, 36, 0.23), transparent 25%),
    repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(255,255,255,0.045) 25%);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.hero-meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.16em; }
.hero-copy { align-self: center; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 25px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.24em; }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 9.3vw, 168px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.085em;
}
.hero h1 span,
.hero h1 em { display: block; font-style: normal; }
.mobile-break { display: none; }
.hero h1 em { color: var(--accent); margin-left: 12vw; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; position: relative; z-index: 2; }
.hero-bottom > p { max-width: 420px; margin: 0; color: #aaa49d; font-size: 15px; line-height: 1.75; }
.circle-link {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 9px;
  letter-spacing: 0.12em;
  transition: color 280ms ease, background 280ms ease, border-color 280ms ease;
}
.circle-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.circle-link:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.hero-mark {
  position: absolute;
  right: 7vw;
  top: 16%;
  z-index: -1;
  width: min(45vw, 690px);
  height: min(70vh, 700px);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(300px, 43vw, 710px);
  font-weight: 900;
  line-height: 0.9;
  pointer-events: none;
}
.hero-mark span { position: absolute; inset: 0; }
.mark-outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.15); transform: translate(-7%, -3%); }
.mark-solid {
  color: rgba(25, 24, 23, 0.6);
  clip-path: inset(0 0 48% 0);
  text-shadow: 0 0 60px rgba(241, 90, 36, 0.18);
}

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--accent); color: var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 24s linear infinite; }
.ticker span { padding-right: 2vw; font-family: var(--display); font-size: clamp(46px, 6vw, 100px); font-weight: 900; letter-spacing: -0.06em; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-25%); } }

.section-head {
  margin-bottom: clamp(55px, 8vw, 120px);
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: end;
}
.section-no { display: inline-block; margin-bottom: 26px; font-size: 10px; font-weight: 800; letter-spacing: 0.17em; }
.section-head h2,
.method h2,
.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 112px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.075em;
}
.section-head > p { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.8; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(22px, 3vw, 52px) clamp(16px, 2.2vw, 38px);
}
.case-card { cursor: pointer; }
.case-card:nth-child(1), .case-card:nth-child(4), .case-card:nth-child(5) { grid-column: span 7; }
.case-card:nth-child(2), .case-card:nth-child(3), .case-card:nth-child(6) { grid-column: span 5; }
.case-card:nth-child(3) { grid-column-start: 2; }
.case-card:nth-child(4) { grid-column-start: 6; }
.case-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #d8d3cb;
  transition: transform 520ms cubic-bezier(.2,.75,.2,1);
}
.case-card:nth-child(2) .case-cover,
.case-card:nth-child(3) .case-cover,
.case-card:nth-child(6) .case-cover { aspect-ratio: 4/5; }
.case-card:hover .case-cover { transform: scale(0.985); }
.case-art { position: absolute; inset: 0; transition: transform 700ms cubic-bezier(.2,.75,.2,1); }
.case-card:hover .case-art { transform: scale(1.045); }
.case-art::before,
.case-art::after { content: ""; position: absolute; }
.tone-orange { background: #eb5729; }
.tone-orange::before { width: 62%; aspect-ratio: 1; border: clamp(18px, 4vw, 65px) solid var(--ink); border-radius: 50%; left: 19%; top: 12%; }
.tone-orange::after { inset: 12% 9%; background: repeating-linear-gradient(90deg, transparent 0 19px, rgba(17,16,15,.28) 20px); mix-blend-mode: multiply; }
.tone-paper { background: #d9d3c8; }
.tone-paper::before { inset: 11%; background: var(--ink); clip-path: polygon(50% 0, 100% 35%, 78% 100%, 21% 83%, 0 30%); }
.tone-paper::after { width: 40%; height: 40%; left: 30%; top: 28%; border: 1px solid var(--paper); transform: rotate(45deg); }
.tone-blue { background: #174bff; }
.tone-blue::before { width: 120%; height: 65%; left: -10%; top: 18%; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; transform: rotate(-18deg); box-shadow: 0 0 0 30px rgba(255,255,255,.08), 0 0 0 60px rgba(255,255,255,.08); }
.tone-blue::after { content: "深"; top: 50%; left: 50%; color: white; font-family: serif; font-size: clamp(90px, 16vw, 260px); font-weight: 900; transform: translate(-50%,-54%); }
.tone-black { background: var(--ink); }
.tone-black::before { inset: 0; background: repeating-radial-gradient(circle at 25% 50%, transparent 0 15px, rgba(241,90,36,.8) 16px 17px, transparent 18px 30px); }
.tone-black::after { content: "QMS"; right: 5%; bottom: -7%; color: var(--paper); font-family: var(--display); font-size: clamp(100px, 17vw, 280px); font-weight: 900; letter-spacing: -.12em; }
.tone-green { background: #b7d36b; }
.tone-green::before { width: 55%; height: 130%; left: 23%; top: -15%; border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 28px #b7d36b, inset 0 0 0 30px var(--ink), inset 0 0 0 58px #b7d36b, inset 0 0 0 60px var(--ink); }
.tone-green::after { width: 12px; height: 12px; left: 50%; top: 50%; border-radius: 50%; background: var(--ink); box-shadow: 90px 40px 0 var(--accent), -120px -80px 0 var(--accent); }
.tone-red { background: #d82f28; }
.tone-red::before { content: "浅"; left: 50%; top: 50%; color: var(--paper); font-family: serif; font-size: clamp(130px, 20vw, 320px); font-weight: 900; transform: translate(-50%,-55%); }
.tone-red::after { inset: 7%; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; }
.case-label { padding-top: 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: baseline; border-top: 1px solid var(--ink); }
.case-label span { font-size: 9px; letter-spacing: 0.12em; }
.case-label h3 { margin: 0; font-size: clamp(19px, 2vw, 30px); letter-spacing: -0.05em; }
.case-arrow { font-size: 20px !important; transition: transform 280ms ease; }
.case-card:hover .case-arrow { transform: translate(4px, -4px); }
.work-note { margin-top: 90px; padding-top: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); }
.work-note span { color: var(--accent); font-size: 12px; font-weight: 800; }
.work-note p { max-width: 520px; margin: 0; font-size: 13px; line-height: 1.7; }

.services { background: var(--ink); color: var(--paper); }
.section-head-light > p { color: #9d9790; }
.service-list { border-top: 1px solid rgba(255,255,255,.2); }
.service-item {
  min-height: 190px;
  padding: 38px 0;
  display: grid;
  grid-template-columns: .35fr 1.2fr 1fr .6fr;
  gap: 25px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.2);
  transition: color 250ms ease, padding 250ms ease;
}
.service-item:hover { color: var(--accent); padding-left: 14px; }
.service-no { font-size: 10px; color: #777; }
.service-item h3 { margin: 0; font-size: clamp(28px, 3.4vw, 56px); letter-spacing: -0.055em; }
.service-item p { max-width: 380px; margin: 0; color: #aaa49d; font-size: 13px; line-height: 1.75; }
.service-en { color: #777; font-size: 9px; letter-spacing: .11em; text-align: right; }

.method { background: var(--accent); }
.method-intro { display: grid; grid-template-columns: .65fr 1.35fr; align-items: start; }
.method-steps { width: min(880px, 72%); margin: 100px 0 0 auto; }
.method-step { padding: 34px 0; display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid rgba(17,16,15,.4); }
.method-step:last-child { border-bottom: 1px solid rgba(17,16,15,.4); }
.method-step > span { font-size: 11px; font-weight: 800; }
.method-step h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 42px); letter-spacing: -.05em; }
.method-step p { max-width: 500px; margin: 0; font-size: 13px; line-height: 1.7; }

.about { position: relative; min-height: 860px; display: grid; grid-template-columns: .8fr 1.2fr .45fr; gap: 50px; background: var(--paper-2); }
.about-symbol {
  align-self: center;
  color: var(--accent);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(120px, 16vw, 250px);
  font-weight: 900;
  line-height: .73;
  letter-spacing: -.22em;
  opacity: .95;
}
.about-copy { align-self: center; }
.about-lead { margin: 60px 0 20px; font-size: clamp(20px, 2.2vw, 34px) !important; line-height: 1.45 !important; letter-spacing: -.035em; }
.about-copy > p { max-width: 650px; font-size: 14px; line-height: 1.85; }
.about-aside { padding-top: 42px; border-top: 1px solid var(--ink); align-self: center; }
.about-aside span { font-size: 10px; font-weight: 800; }
.about-aside p { margin-top: 75px; color: #756e65; font-size: 9px; line-height: 2; letter-spacing: .15em; }

.contact { min-height: 820px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: var(--paper); }
.contact-main > p { color: #8c8780; font-size: 13px; }
.contact h2 { font-size: clamp(64px, 10vw, 170px); }
.contact h2 em { color: var(--accent); font-style: normal; }
.contact-bottom { padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.22); color: #8c8780; font-size: 11px; letter-spacing: .06em; }
.contact-status { display: flex; align-items: center; gap: 10px; }
.contact-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(241,90,36,.14); }
.contact-bottom p { margin: 0; }
.site-footer { padding: 36px var(--pad); display: flex; justify-content: space-between; align-items: end; background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255,255,255,.15); }
.footer-brand { display: flex; align-items: end; gap: 14px; }
.footer-brand strong { font-size: 25px; letter-spacing: -.08em; }
.footer-brand span { margin-bottom: 4px; color: #777; font-size: 8px; letter-spacing: .12em; }
.footer-meta { display: flex; gap: 28px; color: #777; font-size: 9px; }

.case-dialog {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.case-dialog::backdrop { background: rgba(17,16,15,.88); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; padding: 9px 12px; border: 1px solid currentColor; background: var(--paper); cursor: pointer; font-size: 10px; }
.dialog-visual { position: relative; height: min(58vh, 590px); overflow: hidden; }
.dialog-visual .case-art { position: absolute; inset: 0; }
.dialog-copy { padding: 32px clamp(22px, 4vw, 55px) 44px; }
.dialog-copy > span { font-size: 9px; letter-spacing: .14em; }
.dialog-copy h2 { margin: 10px 0 14px; font-size: clamp(32px, 5vw, 66px); letter-spacing: -.07em; }
.dialog-copy p { max-width: 620px; margin: 0; line-height: 1.7; }
.dialog-meta { margin-top: 35px; padding-top: 14px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #736d65; font-size: 10px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 750ms ease, transform 750ms cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { height: 70px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
  .menu-toggle i { width: 22px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .mobile-menu {
    position: fixed;
    z-index: 90;
    inset: 0;
    padding: 110px var(--pad) 40px;
    display: flex;
    background: var(--accent);
    transform: translateY(-102%);
    transition: transform 550ms cubic-bezier(.7,0,.2,1);
  }
  .mobile-menu.is-open { transform: translateY(0); }
  .mobile-menu nav { width: 100%; margin-top: auto; }
  .mobile-menu a { padding: 16px 0; display: flex; gap: 24px; border-bottom: 1px solid rgba(17,16,15,.35); font-size: clamp(40px, 12vw, 72px); font-weight: 900; letter-spacing: -.07em; }
  .mobile-menu a span { padding-top: 10px; font-size: 10px; letter-spacing: 0; }
  .hero { min-height: 780px; }
  .hero h1 em { margin-left: 0; }
  .hero-mark { right: -10vw; top: 25%; width: 75vw; }
  .section-head { grid-template-columns: 1fr; }
  .case-card:nth-child(n) { grid-column: span 6; }
  .case-card:nth-child(3), .case-card:nth-child(4) { grid-column-start: auto; }
  .service-item { grid-template-columns: 50px 1fr; }
  .service-item p { grid-column: 2; }
  .service-en { grid-column: 2; text-align: left; }
  .method-intro { grid-template-columns: 1fr; }
  .method-steps { width: 100%; }
  .about { grid-template-columns: .55fr 1.45fr; }
  .about-aside { display: none; }
}

@media (max-width: 620px) {
  .section-pad { padding-top: 88px; padding-bottom: 88px; }
  .hero { min-height: 720px; padding-top: 100px; }
  .hero h1 { font-size: clamp(46px, 14vw, 56px); }
  .mobile-break { display: initial; }
  .hero-meta span:last-child { display: none; }
  .hero-bottom > p { max-width: 65%; font-size: 12px; }
  .circle-link { width: 78px; height: 78px; }
  .hero-mark { top: 29%; }
  .case-grid { gap: 46px 12px; }
  .case-card:nth-child(n) { grid-column: span 12; }
  .case-card:nth-child(2) .case-cover,
  .case-card:nth-child(3) .case-cover,
  .case-card:nth-child(6) .case-cover { aspect-ratio: 4/3; }
  .work-note { flex-direction: column; gap: 18px; }
  .service-item { min-height: 0; grid-template-columns: 35px 1fr; gap: 12px; }
  .method-steps { margin-top: 60px; }
  .method-step { grid-template-columns: 46px 1fr; }
  .about { min-height: auto; grid-template-columns: 1fr; }
  .about-symbol { position: absolute; right: -20px; top: 90px; opacity: .11; }
  .about-lead { margin-top: 42px; }
  .contact { min-height: 650px; }
  .contact-bottom { flex-direction: column; gap: 14px; }
  .site-footer { align-items: start; flex-direction: column; gap: 32px; }
  .footer-meta { width: 100%; justify-content: space-between; gap: 8px; }
  .footer-meta span:first-child { display: none; }
  .dialog-visual { height: 42vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
