:root {
  --bg: #ffffff;
  --ink: #171717;
  --muted: #606060;
  --line: #dedbd5;
  --soft: #f7f5f1;
  --accent: #f38343;
  --sage: #dfe9cf;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
}

.brand strong,
.brand small,
.nav-links,
.language-switch,
.rule-label,
.project-type,
.spec-list dt,
.method-rows span,
.section-number,
figcaption {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-color: var(--accent);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 96px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}

.language-switch button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.language-switch button + button {
  border-left: 1px solid var(--ink);
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

main {
  overflow: hidden;
}

.section-grid,
.intro-band,
.work-section,
.approach-section,
.services-section,
.profile-section,
.contact-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 34px;
  padding-bottom: 48px;
}

.cn-name {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.35vw, 76px);
  line-height: 1;
}

.lead {
  max-width: 610px;
  color: #2f2f2f;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.primary:hover {
  background: #fff;
}

.button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.hero-plate {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 3vw, 34px);
}

.hero-plate .image-button {
  max-height: 68vh;
}

.image-button {
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
}

.image-button:hover img {
  filter: contrast(1.04);
  transform: scale(1.015);
}

.hero-plate img {
  aspect-ratio: 4 / 5.25;
  object-position: top center;
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding-top: 34px;
  padding-bottom: 72px;
  border-top: 1px solid var(--ink);
}

.intro-band p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #2d2d2d;
  font-size: 20px;
  line-height: 1.75;
}

.rule-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.work-section,
.approach-section,
.services-section,
.profile-section,
.contact-section {
  padding-top: 96px;
  padding-bottom: 96px;
}

.work-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  margin-bottom: 38px;
}

.section-heading h2,
.profile-copy h2,
.contact-section h2 {
  margin-bottom: 8px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.section-number {
  color: var(--accent);
  font-size: clamp(36px, 5vw, 74px);
  font-weight: 800;
  line-height: 0.9;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: stretch;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.project-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  padding-bottom: 8px;
}

.project-type {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.project-summary h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(38px, 4.3vw, 64px);
  font-weight: 500;
  line-height: 1;
}

.project-summary p {
  color: #2b2b2b;
  font-size: 19px;
  line-height: 1.65;
}

.spec-list {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.spec-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.project-visual-main .image-button,
.project-visual-main img {
  height: 100%;
  min-height: 540px;
}

.project-visual-main img {
  object-position: top center;
}

.portfolio-atlas {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--ink);
}

.atlas-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.atlas-header h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
}

.atlas-header p:not(.project-type) {
  max-width: 760px;
  margin: 0;
  color: #343434;
  font-size: 18px;
  line-height: 1.65;
}

.atlas-controls {
  display: flex;
  gap: 8px;
}

.atlas-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.atlas-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.atlas-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sheet-index {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.sheet-index::-webkit-scrollbar,
.sheet-track::-webkit-scrollbar {
  display: none;
}

.sheet-index button {
  flex: 0 0 auto;
  min-width: 44px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.sheet-index button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sheet-index button[aria-current="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.sheet-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(340px, 42%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.sheet-card {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.sheet-card .image-button,
.sheet-card img {
  aspect-ratio: 1320 / 2040;
}

.sheet-card img {
  object-position: top center;
}

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

.drawing-grid figure {
  margin: 0;
}

.drawing-grid .image-button,
.drawing-grid img {
  aspect-ratio: 4 / 5.15;
}

.drawing-grid img {
  object-position: top center;
}

.approach-section {
  width: 100%;
  max-width: none;
  background: var(--soft);
}

.approach-section > * {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-heading.compact {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.method-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.method-rows article {
  min-height: 320px;
  padding: 28px;
  background: #fff;
  border-top: 2px solid var(--ink);
}

.method-rows span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.method-rows h3 {
  margin-bottom: 16px;
  font-size: 25px;
  line-height: 1.35;
}

.method-rows p {
  color: #3e3e3e;
  font-size: 17px;
  line-height: 1.7;
}

.services-section {
  border-top: 1px solid var(--line);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
}

.service-card.wide {
  grid-column: span 2;
  min-height: 280px;
}

.service-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 44px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
}

.service-en {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.service-card p:not(.service-en) {
  margin-top: auto;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}

.fee-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.disclaimer {
  margin-top: 28px;
  padding: 22px;
  background: var(--soft);
  border-left: 2px solid var(--accent);
}

.disclaimer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
}

.disclaimer p {
  margin: 0;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 1.7;
}

.disclaimer p + p {
  margin-top: 8px;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(34px, 6vw, 86px);
  border-top: 1px solid var(--line);
}

.profile-copy p {
  color: #2d2d2d;
  font-size: 19px;
  line-height: 1.8;
}

.timeline {
  border-top: 1px solid var(--ink);
}

.timeline div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
}

.timeline p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  width: 100%;
  max-width: none;
  background: var(--ink);
  color: #fff;
}

.contact-section > * {
  max-width: none;
}

.contact-section p {
  margin: 0;
  color: #e8e8e8;
  font-size: 19px;
  line-height: 1.7;
}

.contact-copy {
  max-width: 560px;
}

.contact-section .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label.full,
.contact-form .button,
.contact-form .form-note {
  grid-column: 1 / -1;
}

.contact-form span {
  color: #f4f4f4;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #6a6a6a;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-note {
  color: #cfcfcf;
  font-size: 13px;
}

.form-note:not([hidden]) {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(243, 131, 67, 0.58);
  border-radius: 12px;
  background: rgba(243, 131, 67, 0.12);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-disclaimer {
  grid-column: 1 / -1;
  margin-top: 0;
  background: #242424;
  border-color: var(--accent);
}

.contact-disclaimer strong,
.contact-disclaimer p {
  color: #f0f0f0;
}

.lightbox {
  width: min(94vw, 1040px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  max-height: 86vh;
  margin: 0 auto;
  background: #fff;
}

.close-lightbox {
  display: block;
  margin: 0 0 10px auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  .language-switch {
    width: auto;
  }

  .hero,
  .featured-project,
  .service-grid,
  .profile-section,
  .contact-section,
  .intro-band,
  .method-rows {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-plate {
    border-left: 0;
    padding-left: 0;
  }

  .project-summary {
    min-height: auto;
  }

  .project-visual-main .image-button,
  .project-visual-main img {
    min-height: 0;
  }

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

  .atlas-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .atlas-controls {
    justify-content: flex-start;
  }

  .sheet-track {
    grid-auto-columns: minmax(280px, 82%);
  }

  .method-rows article {
    min-height: 0;
  }

  .service-card.wide {
    grid-column: auto;
  }

  .contact-section {
    align-items: start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-grid,
  .intro-band,
  .work-section,
  .profile-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 44px;
  }

  .section-heading {
    gap: 16px;
  }

  .section-number {
    font-size: 42px;
  }

  .spec-list div,
  .timeline div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .services-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .sheet-track {
    grid-auto-columns: minmax(256px, 88%);
  }
}
