:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --ink: #152b21;
  --muted: #48594e;
  --rule: #cbd3c8;
  --green: #214a37;
  --serif: "Songti SC","STSong","Noto Serif CJK SC","Noto Serif SC","SimSun",serif;
  --sans: "PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding: 18px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #c7deba;
  color: #172a1e;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:focus-visible {
  outline: 2px solid #a46119;
  outline-offset: 5px;
}

a:hover {
  color: #346841;
}

.wrap {
  width: min(89%,1350px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  padding: 8px 16px;
  background: white;
  z-index: 2;
}

.skip:focus {
  top: 8px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 78px;
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
}

.mark {
  display: block;
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--green);
}

nav {
  display: flex;
  gap: clamp(18px,3vw,42px);
  font-size: .875rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(440px,42vw,620px);
  overflow: hidden;
  background: #142f24;
  color: #fbfbef;
}

.hero img {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,#142f24 0%,#142f24 23%,rgba(20,47,36,.97) 32%,rgba(20,47,36,.82) 40%,rgba(20,47,36,.20) 57%,transparent 68%);
}

.hero-body {
  padding-block: 70px 76px;
}

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

h1,h2 {
  font-family: var(--serif);
  font-weight: 650;
}

h1 {
  font-size: clamp(3.4rem,5.1vw,5.6rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.hero p {
  max-width: 24em;
  line-height: 1.95;
  font-size: 1.0625rem;
  color: #eeefe4;
  margin: 22px 0 24px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.hero-link span {
  display: inline-flex;
  align-items: center;
  background: #f1f4e4;
  color: #173b27;
  border-radius: 4px;
  min-height: 32px;
  padding: 3px 16px;
  font-size: .875rem;
  font-weight: 600;
}

.hero-link:hover span {
  background: #dce8d2;
}

.work {
  padding-block: clamp(40px,5.6vw,78px);
}

h2 {
  font-size: clamp(1.85rem,2.6vw,2.75rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.disciplines {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: clamp(24px,4.7vw,80px);
  margin: 26px 0 0;
}

.discipline {
  border-top: 1px solid #9aa898;
  padding-top: 17px;
}

h3 {
  font-size: clamp(1.18rem,1.6vw,1.5rem);
  line-height: 1.5;
  font-weight: 650;
}

.discipline p {
  margin-top: 8px;
  line-height: 1.85;
  font-size: 1rem;
  color: var(--muted);
}

.contact-band {
  background: #e7ede4;
}

.contact {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  column-gap: clamp(24px,4.7vw,80px);
  align-items: center;
  padding-block: clamp(28px,3.7vw,54px);
}

.contact address {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-column: span 2;
  column-gap: clamp(24px,4.7vw,80px);
  font-style: normal;
}

.contact address span {
  display: block;
  color: var(--muted);
  font-size: .875rem;
}

.contact address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1rem,1.4vw,1.2rem);
  font-variant-numeric: tabular-nums;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  font-size: .8125rem;
  color: var(--muted);
}

footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media(max-width:1023px) {
  .wrap {
    width: 90%;
  }
  .hero img {
    width: 78%;
  }
  .hero:before {
    background: linear-gradient(90deg,#142f24 0%,#142f24 17%,rgba(20,47,36,.95) 33%,rgba(20,47,36,.60) 51%,transparent 76%);
  }
  .hero p {
    max-width: 20em;
  }
  .disciplines {
    column-gap: 24px;
  }
}

@media(max-width:767px) {
  .wrap {
    width: calc(100% - 40px);
  }
  header {
    min-height: 62px;
  }
  .identity {
    font-size: .88rem;
    gap: 8px;
  }
  .mark {
    width: 26px;
    height: 26px;
  }
  nav {
    gap: 8px;
    font-size: .8125rem;
  }
  nav a {
    min-width: 48px;
    justify-content: center;
  }
  .hero {
    align-items: flex-end;
    min-height: 494px;
  }
  .hero img {
    width: 100%;
    height: 77%;
    inset: 0 0 auto;
    object-position: 58% 40%;
  }
  .hero:before {
    background: linear-gradient(0deg,#142f24 0%,#142f24 12%,rgba(20,47,36,.96) 25%,rgba(20,47,36,.78) 41%,rgba(20,47,36,.1) 71%,transparent 88%);
  }
  .hero-body {
    padding: 180px 0 26px;
  }
  h1 {
    font-size: clamp(2.65rem,10.2vw,4rem);
  }
  .hero p {
    max-width: 26em;
    font-size: 1rem;
    line-height: 1.8;
    margin: 18px 0 12px;
  }
  .disciplines {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }
  .contact {
    display: block;
  }
  .contact address {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
  }
  .discipline {
    padding-top: 14px;
  }
  .discipline p {
    margin-top: 4px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 16px 10px;
  }
}

@media(max-width:480px) {
  nav a[href="#main"], nav a[href="#work"] {
    display: none;
  }
  .contact address {
    flex-direction: column;
  }
}

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