:root {
  --bg: #f8f8f5;
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #4d4d4a;
  --muted: #8a8a82;
  --line: #d7d4ca;
  --line-dark: rgba(255, 255, 255, 0.22);
  --stone: #e9e7df;
  --charcoal: #121416;
  --charcoal-2: #1d2023;
  --accent: #60756e;
  --accent-dark: #2f453e;
  --radius: 4px;
  --page: min(100% - 56px, 1440px);
  --narrow: min(100% - 56px, 1180px);
  --display: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif CN", "Songti SC", STSong, SimSun, serif;
  --text: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", Arial, sans-serif;
  --label: "IBM Plex Sans Condensed", "Arial Narrow", "Noto Sans SC", "Source Han Sans SC", Arial, sans-serif;
  --tech: "Space Grotesk", "Noto Sans SC", "Source Han Sans SC", Arial, sans-serif;
  --latin-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --latin-text: "Neue Haas Grotesk Text", "Helvetica Neue", Arial, sans-serif;
  --latin-label: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.72;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

main section[id]:not(#top) {
  scroll-margin-top: 96px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: #fff;
  mix-blend-mode: difference;
}

body.nav-open .site-header {
  color: var(--ink);
  background: rgba(248, 248, 245, 0.98);
  mix-blend-mode: normal;
}

.header-inner {
  width: var(--page);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--latin-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-family: var(--label);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-family: var(--label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav .language-link {
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  overflow: hidden;
  color: #fff;
  background: #0f1011;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.14) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.36) 100%);
}

.hero-content {
  position: relative;
  width: var(--page);
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  margin-inline: auto;
  padding: 18vh 0 44px;
  display: grid;
  align-content: space-between;
  gap: 56px;
}

.hero-copy {
  max-width: 980px;
}

.hero h1 {
  margin: 0;
  max-width: 920px;
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 118px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-lede {
  margin: 26px 0 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 600;
}

.hero-body {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.ghost-light {
  color: #fff;
  background: transparent;
}

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

.button.full {
  width: 100%;
}

.hero-index {
  display: grid;
  grid-template-columns: 0.52fr 0.56fr 1fr;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.hero-index article {
  padding: 20px 24px 18px 0;
  border-right: 1px solid var(--line-dark);
}

.hero-index article + article {
  padding-left: 24px;
}

.hero-index article:last-child {
  border-right: 0;
}

.hero-index span,
.identity-strip span,
.section-number,
.project-card span,
.contact-copy dt {
  display: block;
  color: var(--muted);
  font-family: var(--label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-index strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-family: var(--label);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.identity-strip article {
  min-height: 132px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.identity-strip article:last-child {
  border-right: 0;
}

.identity-strip strong {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.section {
  padding: clamp(86px, 12vw, 168px) 0;
}

.section-intro,
.service-index,
.case-layout,
.portal-layout,
.profile-statement,
.profile-grid,
.contact-layout {
  width: var(--narrow);
  margin-inline: auto;
}

.section-intro {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 54px;
}

.section-intro h2,
.portal-copy h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6.4vw, 96px);
  font-weight: 400;
  line-height: 1.02;
}

.section-intro p,
.portal-copy p,
.profile-grid p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.service-section {
  background: var(--bg);
}

.service-index {
  border-top: 1px solid var(--line);
}

.service-index article {
  display: grid;
  grid-template-columns: 120px minmax(260px, 0.65fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-index article > span {
  color: var(--accent);
  font-family: var(--display);
  font-size: 30px;
}

.service-index h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 600;
}

.service-index p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.project-section {
  color: #fff;
  background: var(--charcoal);
}

.section-intro.invert p,
.project-section .section-number {
  color: rgba(255, 255, 255, 0.58);
}

.project-grid {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.project-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 52px);
  background:
    linear-gradient(180deg, rgba(18, 20, 22, 0.45), rgba(18, 20, 22, 0.92)),
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.12), transparent 35%),
    #1d2023;
}

.project-card.large {
  grid-row: span 2;
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(18, 20, 22, 0.16), rgba(18, 20, 22, 0.86)),
    url("assets/hero-architecture-studio.png") center / cover;
}

.project-card.wide {
  grid-column: span 2;
}

.project-card span {
  color: rgba(255, 255, 255, 0.62);
}

.project-card h3 {
  max-width: 620px;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 54px);
  font-weight: 400;
  line-height: 1.04;
}

.project-card p {
  max-width: 540px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.case-section {
  background: var(--paper);
}

.case-feature-grid {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-feature {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(30px, 5vw, 62px) 0;
  border-bottom: 1px solid var(--line);
}

.case-feature:last-child {
  border-bottom: 0;
}

.case-index {
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.92;
}

.case-feature span,
.case-records span {
  display: block;
  color: var(--muted);
  font-family: var(--label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-feature h3 {
  max-width: 880px;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(34px, 5.5vw, 82px);
  font-weight: 400;
  line-height: 1.02;
}

.case-feature p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.case-records {
  display: grid;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.case-records article {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(240px, 0.42fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.case-records h3 {
  margin: 0;
  font-family: var(--tech);
  font-size: 19px;
  line-height: 1.3;
}

.case-records p {
  margin: 0;
  color: var(--ink-soft);
}

.portal-section {
  background: var(--paper);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.68fr);
  gap: clamp(42px, 7vw, 98px);
  align-items: start;
}

.discipline-list {
  display: grid;
  gap: 0;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.discipline-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.advisor-panel,
.contact-form {
  padding: clamp(28px, 4vw, 46px);
  background: var(--bg);
  border: 1px solid var(--line);
}

.panel-title h3 {
  margin: 0;
  font-family: var(--tech);
  font-size: 24px;
}

.panel-title p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

label {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--ink);
  font-family: var(--label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 13px 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
}

.advisor-result {
  margin-top: 26px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.advisor-result strong {
  font-family: var(--tech);
}

.advisor-result ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.profile-section {
  background: var(--stone);
}

.profile-statement h2 {
  max-width: 1080px;
  margin: 18px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 400;
  line-height: 1.05;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.7fr);
  gap: clamp(44px, 7vw, 90px);
  margin-top: 64px;
}

.timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

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

.timeline span {
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 26px;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-section {
  color: #fff;
  background: var(--charcoal-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(38px, 7vw, 86px);
  align-items: start;
}

.contact-copy .section-number {
  color: rgba(255, 255, 255, 0.54);
}

.contact-copy dl {
  display: grid;
  gap: 28px;
  margin: 48px 0 0;
}

.contact-copy dd {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
}

.contact-form {
  color: var(--ink);
  background: var(--paper);
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(28px, calc((100vw - 1440px) / 2 + 28px));
  color: rgba(255, 255, 255, 0.72);
  background: #080909;
}

.site-footer strong {
  display: block;
  color: #fff;
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  border-bottom: 1px solid currentColor;
}

html[lang="en"] {
  --display: var(--latin-display);
  --text: var(--latin-text);
  --label: var(--latin-label);
}

html[lang="en"] .brand strong {
  font-family: var(--latin-display);
  font-size: 18px;
  font-weight: 600;
}

html[lang="en"] .hero-copy {
  max-width: 1080px;
}

html[lang="en"] .hero h1 {
  max-width: 1060px;
  font-size: clamp(52px, 7.2vw, 112px);
  line-height: 0.95;
}

html[lang="en"] .hero-lede {
  max-width: 820px;
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 500;
}

html[lang="en"] .hero-body,
html[lang="en"] .section-intro p,
html[lang="en"] .portal-copy p,
html[lang="en"] .profile-grid p {
  line-height: 1.62;
}

html[lang="en"] .service-index h3 {
  font-family: var(--latin-display);
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 500;
}

html[lang="en"] .project-card h3 {
  max-width: 720px;
}

@media (max-width: 1040px) {
  :root {
    --page: min(100% - 36px, 1440px);
    --narrow: min(100% - 36px, 1180px);
  }

  .hero-index,
  .identity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-index article,
  .case-feature,
  .case-records article,
  .portal-layout,
  .profile-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .project-card.large,
  .project-card.wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 70px;
  }

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

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 18px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .hero-content {
    gap: 30px;
    padding: 112px 0 30px;
  }

  .hero-lede {
    margin-top: 18px;
    font-size: 24px;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .hero-body {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-index,
  .identity-strip,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-index article,
  .hero-index article + article,
  .identity-strip article {
    padding-left: 0;
    border-right: 0;
  }

  .hero-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-index article {
    padding: 13px 10px 12px 0;
    border-right: 1px solid var(--line-dark);
  }

  .hero-index article + article {
    padding-left: 10px;
  }

  .hero-index article:last-child {
    border-right: 0;
  }

  .hero-index span {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero-index strong {
    font-size: 13px;
    line-height: 1.28;
  }

  .project-card.large,
  .project-card.wide {
    grid-column: auto;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .service-index article {
    gap: 10px;
  }

  .service-index p {
    font-size: 16px;
  }

  .case-feature {
    gap: 12px;
  }

  .case-records article {
    gap: 8px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-flex;
    margin-top: 18px;
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(42px, 12.5vw, 62px);
  }

  html[lang="en"] .brand strong {
    max-width: 230px;
    font-size: 15px;
    line-height: 1.1;
  }

  html[lang="en"] .hero-index {
    grid-template-columns: 1fr;
  }

  html[lang="en"] .hero-index article,
  html[lang="en"] .hero-index article + article {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  html[lang="en"] .hero-index article:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
