:root {
  --paper: #ffffff;
  --ink: #161616;
  --muted: #6d6d6d;
  --faint: #9a9a9a;
  --line: #e6e6e6;
  --gutter: clamp(24px, 7vw, 120px);
  --measure: 34rem;
  --font: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #ececec; }

a.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: white;
}
a.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
  height: 72px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
}

.wordmark {
  color: #17275d;
  font-weight: 400;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.wordmark-accent { color: #245ac7; }

nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}

nav a { padding: 8px 0; transition: color .2s; }
nav a:hover { color: var(--ink); }

.language {
  margin-left: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--faint);
  transition: color .2s;
}
.language:hover { color: var(--ink); }

.menu-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }

.hero h1 {
  font-size: clamp(52px, 7.2vw, 112px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -3.2px;
  animation: enter 1s .08s both;
}

.hero-description {
  max-width: 28rem;
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  animation: enter 1s .16s both;
}

.text-link {
  display: inline-block;
  margin-top: 44px;
  font-size: 15px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  animation: enter 1s .24s both;
  transition: color .2s, border-color .2s;
}
.text-link:hover { color: var(--muted); border-color: var(--muted); }

.hero-art {
  position: absolute;
  top: 8%;
  right: -6%;
  width: min(58vw, 820px);
  height: 84%;
  pointer-events: none;
  animation: enter 1.6s .1s both;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: .85;
}

.hero-place {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  bottom: 32px;
  font-size: 13px;
  color: var(--faint);
  animation: enter 1s .3s both;
}

/* ---------- sections ---------- */

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

.work {
  padding: clamp(88px, 11vw, 160px) var(--gutter);
}

.service p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--muted);
  max-width: var(--measure);
}

/* ---------- work ---------- */

.work h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -1.2px;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.service {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.service h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.3px;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-mail { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.footer-mail:hover { color: var(--muted); border-color: var(--muted); }

.site-footer a:hover { color: var(--ink); }

.filings { display: flex; gap: 24px; }

.duns {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.duns-number { letter-spacing: 0.08em; }

/* ---------- motion ---------- */

.reveal { opacity: 1; transform: none; }
.js-motion .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s, transform .7s; }
.js-motion .reveal.visible { opacity: 1; transform: none; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- legal ---------- */

.legal-page {
  max-width: 720px;
  margin: auto;
  padding: 150px 30px 110px;
  min-height: 75vh;
}
.legal-page h1 { font-size: 36px; font-weight: 400; letter-spacing: -1px; margin-bottom: 20px; }
.legal-page h2 { font-size: 17px; font-weight: 400; margin: 44px 0 12px; }
.legal-page p { font-size: 15px; color: var(--muted); line-height: 1.95; }
.legal-page .legal-date { font-size: 13px; color: var(--faint); margin-bottom: 36px; }
.legal-page .legal-back {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.legal-page .email-link { margin-top: 20px; font-size: 18px; }
.legal-header { position: absolute; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.legal-header .text-link { margin-top: 0; font-size: 14px; animation: none; }
.legal-header + .legal-page { padding-top: 64px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 140px; padding-bottom: 96px; }
  .hero-art { width: 70vw; top: auto; bottom: -8%; height: 46%; opacity: .5; }
  .hero h1 { letter-spacing: -2px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 24px; }
  .site-header { height: 64px; }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    padding: 10px 0;
  }
  .menu-lines {
    width: 16px;
    height: 8px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transition: transform .2s;
  }
  .menu-toggle[aria-expanded="true"] .menu-lines { transform: rotate(-45deg); }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    gap: 6px;
  }
  nav.open { display: flex; flex-direction: column; }
  nav .language { margin-left: 0; text-align: left; }

  .hero { padding-top: 120px; padding-bottom: 88px; }
  .hero h1 { font-size: 44px; letter-spacing: -1.4px; }
  .hero-description { font-size: 15px; margin-top: 24px; }
  .hero-art { display: none; }
  .hero-place { bottom: 24px; }

  .work { padding-top: 72px; padding-bottom: 72px; }
  .work h2 { font-size: 28px; letter-spacing: -0.8px; margin-bottom: 40px; }

  .service { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }

  .site-footer { flex-wrap: wrap; row-gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }

  .legal-page { padding: 120px 24px 72px; }
  .legal-page h1 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
