:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #181b17;
  --muted: #52574e;
  --rule: #d8d9ce;
  --accent: #314631;
  --accent-soft: #e6ebde;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
a:focus-visible { outline: 3px solid #58764e; outline-offset: 5px; }
.wrap { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  padding: 10px 14px; color: white; background: var(--accent);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.masthead { min-height: 88px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--accent); color: white; font-size: 21px; font-weight: 700;
}
.brand small { display: block; margin-top: 3px; font-size: 10px; letter-spacing: .17em; color: var(--muted); }
nav { display: flex; align-items: center; gap: 26px; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding-block: 9px; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.language { border: 1px solid var(--rule); padding: 8px 12px; }

.hero {
  display: grid; grid-template-columns: .94fr 1.06fr; align-items: center;
  gap: clamp(28px, 5vw, 78px); padding-block: clamp(42px, 6vw, 88px);
}
.hero-content { min-width: 0; }
.kicker { margin: 0 0 23px; font-size: 14px; color: var(--accent); font-weight: 700; letter-spacing: .07em; }
h1 { margin: 0; font-size: clamp(41px, 5.15vw, 75px); font-weight: 760; line-height: 1.12; letter-spacing: -.055em; }
[lang="en"] h1 { font-size: clamp(42px, 5.05vw, 72px); }
.intro { max-width: 34ch; margin: 24px 0 28px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.85; color: var(--muted); }
[lang="en"] .intro { max-width: 44ch; }
.primary-link {
  display: inline-flex; align-items: center; gap: 20px; padding: 13px 17px;
  background: var(--accent); color: white; text-decoration: none; font-size: 14px; font-weight: 650;
}
.primary-link:hover { background: #253724; }
.hero-image { position: relative; margin: 0; aspect-ratio: 1.19; overflow: hidden; background: #242720; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.hero-image figcaption {
  position: absolute; bottom: 13px; right: 13px; padding: 5px 8px; font-size: 12px;
  color: #fff; background: #181b17;
}

.work { border-top: 1px solid var(--rule); padding-block: 39px 48px; }
h2 { margin: 0 0 22px; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -.04em; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.work-grid article { border-top: 2px solid var(--accent); padding-top: 17px; }
h3 { margin: 0 0 9px; font-size: 18px; line-height: 1.4; }
.work-grid p, .about p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; background: var(--accent-soft); padding: 34px 38px; }
.about h2 { margin: 0; }
.about .legal-name { font-weight: 750; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.footer { min-height: 87px; font-size: 13px; color: var(--muted); }
.footer a { text-decoration: none; white-space: nowrap; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 1.5; }
  h1 br { display: none; }
  .work-grid { gap: 22px; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 75px; gap: 10px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .brand small { font-size: 9px; }
  nav { gap: 11px; }
  nav a { font-size: 12px; }
  .language { padding-inline: 7px; }
  .hero { gap: 29px; }
  .intro { margin-top: 17px; }
  .work-grid, .about { grid-template-columns: 1fr; }
  .work-grid { gap: 20px; }
  .about { padding: 25px; gap: 14px; }
  .footer { gap: 11px; }
}

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