:root {
  --paper: #f6f1e8;
  --paper-deep: #eee5d8;
  --ink: #292826;
  --muted: #6f6a62;
  --line: rgba(41, 40, 38, 0.14);
  --accent: #d66c36;
  --accent-dark: #a84924;
  --white: #fffdf9;
  --shadow: 0 24px 60px rgba(58, 42, 30, 0.09);
  --radius-lg: 32px;
  --radius-md: 20px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: white; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.container { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }
.eyebrow { margin: 0 0 18px; color: var(--accent-dark); font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.display { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(44px, 7vw, 88px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.page-title { margin: 0; max-width: 900px; font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(42px, 6vw, 72px); font-weight: 600; line-height: 1.16; letter-spacing: -.03em; }
.section-title { margin: 0; font-family: "Songti SC", "STSong", Georgia, serif; font-size: clamp(32px, 4.5vw, 52px); font-weight: 600; line-height: 1.22; letter-spacing: -.025em; }
.lead { margin: 24px 0 0; max-width: 700px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.8; }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: border-color .2s ease, background .2s ease; }
.site-header.scrolled { border-color: var(--line); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.brand-logo { width: 42px; height: 42px; flex: none; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); margin: 0; padding: 0; list-style: none; font-size: 14px; }
.nav-links a { position: relative; padding: 25px 0 22px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px; background: var(--accent); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 18px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero { position: relative; min-height: calc(100svh - 76px); display: flex; align-items: center; overflow: hidden; padding: 84px 0 108px; }
.hero::before { content: ""; position: absolute; width: min(46vw, 590px); aspect-ratio: 1; right: -8vw; top: 12%; border: 1px solid rgba(214,108,54,.27); border-radius: 50%; }
.hero::after { content: "吉"; position: absolute; right: max(4vw, 28px); bottom: 3%; color: rgba(214,108,54,.075); font-family: "Songti SC", serif; font-size: min(36vw, 460px); line-height: 1; pointer-events: none; }
.hero-copy { position: relative; z-index: 1; width: min(880px, 100%); }
.hero .display span { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--white); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.text { border-color: transparent; color: var(--muted); }
.button.text::after { content: "→"; margin-left: 9px; color: var(--accent); }
.hero-meta { display: flex; gap: 36px; margin-top: 80px; color: var(--muted); font-size: 13px; }
.hero-meta strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 14px; }

.section { padding: 110px 0; }
.section.soft { background: var(--paper-deep); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; margin-bottom: 52px; }
.section-head .lead { margin: 0; justify-self: end; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,253,249,.42); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(214,108,54,.35); box-shadow: var(--shadow); }
.card-number { display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-family: Georgia, serif; font-size: 14px; }
.card-number::after { content: ""; width: 38px; height: 1px; background: currentColor; }
.card h3 { margin: 72px 0 14px; font-family: "Songti SC", serif; font-size: 24px; line-height: 1.45; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.project-feature { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 520px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.project-visual { position: relative; display: grid; place-items: center; min-height: 360px; overflow: hidden; background: #252a2c; color: white; }
.project-visual::before, .project-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.project-visual::before { width: 360px; height: 360px; }
.project-visual::after { width: 220px; height: 220px; background: rgba(214,108,54,.12); }
.monogram { position: relative; z-index: 1; font-family: "Songti SC", serif; font-size: clamp(62px, 9vw, 112px); letter-spacing: -.08em; }
.monogram small { display: block; margin-top: 12px; color: rgba(255,255,255,.6); font-family: sans-serif; font-size: 11px; letter-spacing: .28em; text-align: center; }
.project-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 72px); }
.status { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; padding: 7px 12px; border: 1px solid rgba(214,108,54,.35); border-radius: 999px; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.project-copy h3 { margin: 24px 0 16px; font-family: "Songti SC", serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; }
.project-copy p { margin: 0; color: var(--muted); }
.project-copy .button { align-self: flex-start; margin-top: 28px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.principle { min-height: 220px; padding: 32px; background: var(--paper); }
.principle strong { display: block; margin-bottom: 60px; color: var(--accent); font-family: Georgia, serif; font-size: 16px; }
.principle h3 { margin: 0 0 10px; font-size: 18px; }
.principle p { margin: 0; color: var(--muted); font-size: 14px; }
.principle-title { white-space: nowrap; font-size: clamp(32px, 4vw, 48px); }
.principle-title span { display: inline-block; white-space: nowrap; }

.page-hero { padding: 110px 0 92px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 760px; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.prose { color: var(--muted); font-size: 17px; }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); }
.quote { margin: 0; padding: 34px 0 34px 28px; border-left: 3px solid var(--accent); font-family: "Songti SC", serif; font-size: clamp(24px, 3vw, 36px); line-height: 1.55; }
.detail-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.detail-list li { display: grid; grid-template-columns: 80px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.detail-list .index { color: var(--accent); font-family: Georgia, serif; }
.detail-list h3 { margin: 0 0 8px; font-size: 20px; }
.detail-list p { margin: 0; color: var(--muted); }

.business-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.business-item { min-height: 360px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.28); }
.business-item .index { color: var(--accent); font-family: Georgia, serif; }
.business-item h2 { margin: 92px 0 16px; font-family: "Songti SC", serif; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
.business-item p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }

.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 46px 0 70px; }
.case-meta-item { padding: 24px; border-top: 1px solid var(--ink); }
.case-meta-item span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.case-meta-item strong { font-size: 17px; }
.boundary { padding: 30px; border: 1px solid rgba(214,108,54,.35); border-radius: var(--radius-md); background: rgba(214,108,54,.06); }
.boundary h3 { margin: 0 0 10px; font-size: 17px; }
.boundary p { margin: 0; color: var(--muted); }

.contact-panel { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.contact-main { padding: clamp(36px, 7vw, 80px); }
.contact-side { position: relative; min-height: 380px; padding: clamp(36px, 6vw, 64px); background: var(--ink); color: white; }
.contact-side::after { content: "喵"; position: absolute; right: 20px; bottom: -28px; color: rgba(255,255,255,.05); font-family: "Songti SC", serif; font-size: 210px; line-height: 1; }
.contact-side h3 { position: relative; z-index: 1; margin: 0 0 18px; font-family: "Songti SC", serif; font-size: 30px; }
.contact-side p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.65); }
.pending-note { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; }
.contact-email { display: inline-block; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: white; font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: .01em; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 5px; }
.contact-email:hover { color: #f1b08d; text-decoration-color: currentColor; }
.inline-email { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.inline-email:hover { color: var(--ink); }

.policy { width: min(calc(100% - 40px), 820px); margin: 0 auto; }
.policy section { margin: 48px 0; }
.policy h2 { margin: 0 0 12px; font-size: 22px; }
.policy p, .policy li { color: var(--muted); }
.policy ul { padding-left: 1.4em; }

.cta { padding: 96px 0; text-align: center; }
.cta .section-title { max-width: 760px; margin: 0 auto; }
.cta .button { margin-top: 30px; }
.site-footer { padding: 60px 0 26px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding-bottom: 46px; }
.footer-brand p { max-width: 420px; margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 38px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span { opacity: 0; }
  .menu-toggle[aria-expanded="true"]::before { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"]::after { transform: translateY(-5.5px) rotate(-45deg); }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; gap: 6px; background: var(--paper); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: transform .28s ease, opacity .2s ease, visibility .2s ease; }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links a { display: block; padding: 11px 20px; font-family: "Songti SC", serif; font-size: 28px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .project-feature, .contact-panel { grid-template-columns: 1fr; }
  .project-visual { min-height: 370px; }
  .section-head, .two-col { grid-template-columns: 1fr; gap: 26px; }
  .section-head .lead { justify-self: start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--content)); }
  .nav { min-height: 68px; }
  .brand-logo { width: 40px; height: 40px; }
  .hero { min-height: auto; padding: 76px 0 82px; }
  .hero::before { width: 78vw; right: -38vw; top: 22%; }
  .hero::after { font-size: 54vw; right: -8vw; }
  .display { font-size: clamp(43px, 13vw, 64px); }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 58px; }
  .section { padding: 78px 0; }
  .section-head { margin-bottom: 34px; }
  .principle-title { white-space: normal; }
  .cards, .business-grid, .principles, .case-meta { grid-template-columns: 1fr; }
  .principles { gap: 1px; }
  .card { min-height: 250px; }
  .card h3 { margin-top: 52px; }
  .business-item { min-height: 310px; }
  .business-item h2 { margin-top: 68px; }
  .project-copy { padding: 34px 26px 40px; }
  .page-hero { padding: 78px 0 68px; }
  .detail-list li { grid-template-columns: 44px 1fr; gap: 18px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { display: block; }
  .footer-bottom span, .footer-bottom a { display: block; margin: 7px 0; }
}

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