:root {
  color-scheme: light;
  --bg: #f2eee7;
  --paper: #fcfaf6;
  --ink: #27231f;
  --muted: #746e67;
  --line: #d9d1c6;
  --deep: #322a24;
  --accent: #cb6d2d;
  --accent-soft: #f2dfd0;
  --accent-ink: #7d3f1d;
  --shadow: 0 18px 50px rgba(52, 42, 32, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

body[data-designer="b"] {
  --deep: #26302a;
  --accent: #70816d;
  --accent-soft: #e1e8df;
  --accent-ink: #455541;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: --accent 180ms ease;
}
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.prototype-bar {
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 5px 16px;
  background: #9b4a31;
  color: #fff7ef;
  font-size: 12px;
  letter-spacing: .06em;
  text-align: center;
}

.site-header { background: #292620; color: white; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 46px; height: 54px; object-fit: contain; }
.brand span { display: flex; align-items: baseline; gap: 10px; }
.brand b { font-family: var(--serif); font-size: 25px; letter-spacing: .08em; }
.brand small { color: #d8d0c7; font-size: 14px; }
.header-meta { color: #e6dfd6; font-size: 14px; display: flex; align-items: center; gap: 9px; }
.private-dot { width: 8px; height: 8px; border-radius: 50%; background: #e5a16b; box-shadow: 0 0 0 5px rgba(229,161,107,.12); }

.hero { position: relative; overflow: hidden; padding: 78px 0 66px; background: #e9e2d8; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255,255,255,.8), transparent 32%),
    linear-gradient(115deg, transparent 52%, rgba(97,72,51,.08) 52.3%, transparent 53%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(91,70,52,.035) 120px);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); line-height: 1.12; letter-spacing: -.035em; }
.hero-lead { max-width: 700px; margin: 26px 0 0; color: #5e5750; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.primary-link { display: inline-flex; min-height: 50px; align-items: center; padding: 0 26px; border-radius: 999px; background: var(--deep); color: white; font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px rgba(47,39,32,.18); }
.text-link { color: var(--muted); text-underline-offset: 5px; }

.brief-card { background: rgba(252,250,246,.9); border: 1px solid rgba(145,119,94,.2); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.brief-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.brief-head b { color: var(--ink); font-family: var(--serif); font-size: 24px; }
.brief-list { display: grid; gap: 0; }
.brief-list div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ebe5dc; }
.brief-list b { font-size: 14px; }
.brief-list span { color: var(--muted); font-size: 14px; }
.privacy-note { margin: 16px 0 0; color: #948b82; font-size: 12px; }

.quick-compare { padding: 72px 0 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.section-heading h2, .section-heading h3 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.25; }
.section-heading h3 { font-size: clamp(29px, 3vw, 40px); }
.section-heading > p { max-width: 460px; margin: 0 0 5px; color: var(--muted); text-align: right; }
.section-heading.compact h2 { font-size: clamp(30px, 3.5vw, 42px); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare-card { appearance: none; width: 100%; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 8px 28px rgba(50,40,31,.06); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.compare-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.mini-profile { display: flex; align-items: center; gap: 18px; }
.mini-profile img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; }
.mini-profile div { display: grid; }
.mini-profile span { color: var(--accent); font-size: 12px; font-weight: 800; }
.mini-profile b { font-family: var(--serif); font-size: 29px; line-height: 1.25; }
.mini-profile small { color: var(--muted); }
.compare-style { margin: 22px 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.compare-b { --accent: #70816d; --accent-soft: #e1e8df; --accent-ink: #455541; }
.compare-card ul { margin: 0; padding-left: 20px; color: #615a53; }
.compare-card li + li { margin-top: 5px; }
.card-cta { display: block; margin-top: 18px; color: var(--accent); font-weight: 800; font-size: 14px; }

.designer-switch { position: sticky; top: 0; z-index: 20; padding: 12px 20px; background: rgba(242,238,231,.86); border-block: 1px solid rgba(147,126,104,.18); backdrop-filter: blur(16px); }
.switch-shell { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(740px, 100%); margin: auto; padding: 6px; border-radius: 22px; background: #ddd6cc; box-shadow: 0 10px 28px rgba(42,35,29,.12); }
.designer-tab { position: relative; display: grid; grid-template-columns: 38px auto 1fr; align-items: center; gap: 10px; min-height: 60px; padding: 8px 20px; border: 0; border-radius: 17px; background: transparent; color: #69625a; cursor: pointer; text-align: left; }
.designer-tab > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 13px; font-weight: 800; }
.designer-tab b { font-size: 17px; }
.designer-tab small { justify-self: end; font-size: 12px; }
.designer-tab.is-active { background: var(--deep); color: white; box-shadow: 0 10px 26px rgba(41,35,29,.18); }

.designer-panel { padding: 76px 0 0; }
.designer-panel[hidden] { display: none; }
.profile-section { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; }
.profile-photo-wrap { position: relative; }
.profile-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 38%; border-radius: 38px; box-shadow: var(--shadow); }
.profile-badge { position: absolute; top: 22px; left: 22px; padding: 9px 16px; border-radius: 999px; background: var(--accent); color: white; font-size: 13px; font-weight: 800; }
.profile-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(54px, 6vw, 78px); line-height: 1.05; }
.role-title { margin: 6px 0 18px; font-size: 22px; font-weight: 800; }
.credential-line { display: flex; flex-wrap: wrap; gap: 8px 0; padding-block: 16px; border-block: 1px solid var(--line); color: var(--muted); }
.credential-line span:not(:last-child)::after { content: "·"; margin: 0 12px; color: #b6aea5; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat-row div { padding: 15px 14px; border-radius: 16px; background: var(--accent-soft); }
.stat-row b { display: block; color: var(--accent-ink); font-family: var(--serif); font-size: 30px; line-height: 1; }
.stat-row span { color: var(--muted); font-size: 12px; }
.bio { margin: 22px 0 0; color: #554f48; font-size: 16px; line-height: 1.9; }
.profile-copy blockquote { margin: 18px 0 0; color: var(--accent-ink); font-family: var(--serif); font-size: 21px; font-weight: 700; }

.response-section, .case-section, .method-section { padding-top: 88px; }
.response-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.response-grid article { position: relative; padding: 25px 25px 25px 78px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 7px 22px rgba(47,38,30,.05); }
.response-grid article > span { position: absolute; top: 24px; left: 22px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 12px; font-weight: 800; }
.response-grid h4 { margin: 0 0 8px; font-size: 19px; }
.response-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.featured-case { overflow: hidden; display: grid; grid-template-columns: 1.5fr 1fr; border-radius: var(--radius-lg); background: var(--deep); color: white; box-shadow: var(--shadow); }
.case-image-wrap { position: relative; min-height: 480px; overflow: hidden; }
.case-image-wrap > img { width: 100%; height: 100%; object-fit: cover; }
.image-caption { position: absolute; inset: auto 0 0; display: grid; gap: 3px; padding: 20px 24px; background: linear-gradient(transparent, rgba(24,21,18,.86)); }
.image-caption span { color: #ddd4ca; font-size: 11px; letter-spacing: .12em; }
.image-caption b { font-size: 19px; }
.case-detail { padding: 35px; }
.case-meta { margin: 0; color: #d7cec5; font-size: 13px; }
.case-detail h4 { margin: 9px 0 14px; font-family: var(--serif); font-size: 38px; }
.case-detail > p:not(.case-meta) { color: #e8e0d8; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.tag-list span { padding: 6px 11px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 700; }
.case-detail dl { margin: 24px 0 0; }
.case-detail dl div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.13); }
.case-detail dt { color: #c7bdb3; font-size: 12px; }
.case-detail dd { margin: 0; font-size: 13px; }
.local-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.local-cases article { position: relative; padding: 24px 24px 22px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); }
.local-cases span { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 800; }
.local-cases h4 { margin: 9px 0 4px; font-size: 19px; }
.local-cases p { margin: 0; color: var(--muted); font-size: 14px; }
.local-cases small { display: block; margin-top: 10px; color: #9a9188; }
.client-quote { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 0; padding: 18px 22px; border-left: 5px solid var(--accent); border-radius: 0 15px 15px 0; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--serif); font-size: 17px; }
.client-quote cite { color: var(--muted); font-family: var(--sans); font-size: 12px; font-style: normal; }

.process-list { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.process-list li { min-height: 190px; padding: 22px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); }
.process-list li > span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.process-list b { display: block; margin-top: 30px; font-size: 19px; }
.process-list p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.detail-disclosure { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.detail-disclosure summary { position: relative; padding: 20px 56px 20px 24px; cursor: pointer; font-weight: 800; list-style: none; }
.detail-disclosure summary::-webkit-details-marker { display: none; }
.detail-disclosure summary::after { content: "+"; position: absolute; top: 15px; right: 22px; color: var(--accent); font-size: 26px; font-weight: 400; transition: transform 160ms ease; }
.detail-disclosure[open] summary::after { transform: rotate(45deg); }
.detail-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 24px 24px; border-top: 1px solid var(--line); }
.detail-body p { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.detail-body b { color: var(--ink); }

.designer-fit { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; margin: 88px 0 0; padding: 36px; border-radius: var(--radius-lg); background: var(--deep); color: white; }
.designer-fit h3 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); }
.fit-tags { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.fit-tags span { padding: 7px 12px; border-radius: 999px; background: var(--accent); font-size: 12px; font-weight: 700; }
.choose-button { grid-column: 2; grid-row: 1 / 3; min-height: 54px; padding: 0 24px; border: 0; border-radius: 999px; background: white; color: var(--deep); font-weight: 800; cursor: pointer; }

.final-choice { margin-top: 88px; padding: 72px 0; background: #ded6cc; }
.final-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.final-choice h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); }
.final-choice p:not(.eyebrow) { margin: 14px 0 0; color: var(--muted); }
.choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-actions button { min-height: 52px; border: 1px solid #b9aea2; border-radius: 14px; background: var(--paper); color: var(--ink); cursor: pointer; font-weight: 800; }
.choice-actions button:last-child { grid-column: 1 / -1; background: var(--deep); color: white; border-color: var(--deep); }

.site-footer { padding: 36px 0 90px; background: #292620; color: white; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-inner div { display: grid; }
.footer-inner span, .footer-inner p { color: #bbb2a9; font-size: 12px; }
.footer-inner p { margin: 0; text-align: right; }

.mobile-choice-bar { display: none; }
.choice-dialog { width: min(500px, calc(100% - 32px)); padding: 34px; border: 0; border-radius: 26px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(29,24,20,.35); }
.choice-dialog::backdrop { background: rgba(29,25,21,.62); backdrop-filter: blur(4px); }
.choice-dialog h2 { margin: 0; font-family: var(--serif); font-size: 36px; }
.choice-dialog > p:not(.eyebrow) { color: var(--muted); }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eee7de; color: var(--ink); cursor: pointer; font-size: 25px; }
.choice-result { margin: 20px 0; padding: 18px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions button { min-height: 48px; border-radius: 14px; cursor: pointer; font-weight: 800; }
.dialog-primary { border: 0; background: var(--deep); color: white; }
.dialog-secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.copy-status { display: block; min-height: 24px; margin-top: 9px; color: var(--accent-ink); font-size: 12px; text-align: center; }

:focus-visible { outline: 3px solid #e8a06d; outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid, .profile-section, .featured-case, .final-choice-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .profile-section { gap: 34px; }
  .profile-photo-wrap { max-width: 480px; }
  .featured-case { background: var(--paper); color: var(--ink); }
  .case-image-wrap { min-height: 430px; }
  .case-detail > p:not(.case-meta) { color: var(--muted); }
  .case-detail dl div { border-top-color: var(--line); }
  .case-detail dt, .case-meta { color: var(--muted); }
  .process-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 92px; }
  .shell { width: min(100% - 28px, 1180px); }
  .prototype-bar { font-size: 10px; }
  .site-header { min-height: 64px; }
  .header-inner { min-height: 64px; }
  .brand img { width: 36px; height: 42px; }
  .brand b { font-size: 20px; }
  .brand small { display: none; }
  .header-meta { font-size: 11px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 42px; }
  .hero-lead { margin-top: 20px; font-size: 15px; line-height: 1.8; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 25px; }
  .primary-link { width: 100%; justify-content: center; }
  .brief-card { padding: 22px; }
  .brief-list div { grid-template-columns: 76px 1fr; }
  .quick-compare { padding: 52px 0; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading > p { margin-top: 8px; text-align: left; font-size: 13px; }
  .compare-grid, .response-grid, .local-cases, .process-list, .detail-body { grid-template-columns: 1fr; }
  .compare-grid { gap: 14px; }
  .compare-card { padding: 20px; border-radius: 22px; }
  .mini-profile img { width: 76px; height: 76px; }
  .mini-profile b { font-size: 25px; }
  .designer-switch { padding: 8px 12px; }
  .switch-shell { border-radius: 17px; }
  .designer-tab { grid-template-columns: 30px auto; gap: 8px; min-height: 52px; padding: 7px 10px; border-radius: 13px; }
  .designer-tab > span { width: 28px; height: 28px; }
  .designer-tab b { font-size: 15px; }
  .designer-tab small { display: none; }
  .designer-panel { padding-top: 48px; }
  .profile-photo-wrap { max-width: none; }
  .profile-photo { aspect-ratio: 5/5.4; border-radius: 26px; object-position: 50% 30%; }
  .profile-copy h2 { font-size: 56px; }
  .role-title { font-size: 18px; }
  .credential-line { font-size: 13px; }
  .stat-row { gap: 8px; }
  .stat-row div { padding: 13px 10px; }
  .stat-row b { font-size: 25px; }
  .stat-row span { font-size: 10px; }
  .bio { font-size: 14px; }
  .profile-copy blockquote { font-size: 18px; }
  .response-section, .case-section, .method-section { padding-top: 62px; }
  .response-grid { gap: 12px; }
  .response-grid article { padding: 20px 18px 20px 70px; }
  .response-grid article > span { top: 20px; left: 18px; }
  .case-image-wrap { min-height: 280px; }
  .case-detail { padding: 25px 20px; }
  .case-detail h4 { font-size: 33px; }
  .local-cases { gap: 11px; }
  .client-quote { display: block; }
  .client-quote cite { display: block; margin-top: 8px; }
  .process-list { gap: 10px; }
  .process-list li { min-height: 0; display: grid; grid-template-columns: 42px 1fr; gap: 8px; padding: 19px; }
  .process-list b { margin-top: 0; }
  .detail-body { gap: 0; }
  .designer-fit { display: block; margin-top: 62px; padding: 25px 20px; }
  .fit-tags { margin: 18px 0; }
  .choose-button { width: 100%; }
  .final-choice { margin-top: 60px; padding: 52px 0; }
  .final-choice-grid { gap: 30px; }
  .choice-actions { grid-template-columns: 1fr; }
  .choice-actions button:last-child { grid-column: auto; }
  .site-footer { padding-bottom: 110px; }
  .footer-inner { display: block; }
  .footer-inner p { margin-top: 20px; text-align: left; }
  .mobile-choice-bar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 9px 8px 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(39,35,31,.94); color: white; box-shadow: 0 16px 46px rgba(31,26,22,.32); backdrop-filter: blur(14px); }
  .mobile-choice-bar span { font-size: 12px; }
  .mobile-choice-bar button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--accent); color: white; font-weight: 800; }
  .dialog-actions { grid-template-columns: 1fr; }
}

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