/* DAMAI homepage. Palette: #000 and #F0F0FA, with 72% and 50% white for secondary text and hairlines. */

@font-face {
  font-family: Inter;
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Noto Sans SC is subset to the characters this page uses. Re-subset when the copy changes. */
@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/noto-sans-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("fonts/noto-sans-sc-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --white-100: #f0f0fa;
  --white-72: rgba(240, 240, 250, 0.72);
  --white-50: rgba(240, 240, 250, 0.5);
  --line: rgba(240, 240, 250, 0.22);
  --line-soft: rgba(240, 240, 250, 0.12);
  --pad: clamp(20px, 4vw, 40px);
  --max: 1320px;
  --gutter: max(var(--pad), calc(50vw - var(--max) / 2 + var(--pad)));
  --header: 96px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white-100);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus {
  outline: 2px solid transparent;
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--white-100);
  outline-offset: 3px;
}

::selection {
  background: var(--white-100);
  color: var(--black);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--white-100);
  color: var(--black);
  padding: 10px 14px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
}

.skip:focus {
  transform: none;
}

.hero:focus,
.section:focus,
.platforms:focus,
.about:focus {
  outline: none;
}

.wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Small label with a rule, used above the hero title and every section title. */

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--white-72);
}

.eyebrow::before,
.kicker::before {
  content: "";
  flex: 0 0 36px;
  height: 1px;
  background: var(--white-100);
}

.arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 1px;
  background: currentColor;
}

.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.section {
  padding: clamp(80px, 13vh, 128px) 0;
  border-top: 1px solid var(--line-soft);
}

.section h2 {
  margin-top: 20px;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.section-lead {
  max-width: 36em;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--white-72);
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: var(--header);
  padding: 22px var(--gutter);
  padding-top: max(22px, env(safe-area-inset-top));
}

.js .site-header {
  position: fixed;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.js .site-header.is-scrolled,
.js body.nav-open .site-header {
  background: #000;
  border-bottom-color: var(--line-soft);
}

.brand {
  position: relative;
  z-index: 5;
  display: block;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-rule {
  display: block;
  width: 34px;
  height: 1px;
  margin-bottom: 12px;
  background: var(--white-100);
}

.brand-name {
  display: block;
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.62em;
  line-height: 1;
  margin-right: -0.62em;
}

.brand-sub {
  display: block;
  margin-top: 10px;
  margin-right: -0.34em;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--white-72);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-nav a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  color: var(--white-100);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--white-100);
}

.nav-assess {
  display: none;
}

.nav-toggle {
  position: relative;
  z-index: 5;
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white-100);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 58px;
  padding: 0 26px;
  border-radius: 2px;
  border: 1px solid var(--white-100);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-solid {
  background: var(--white-100);
  color: var(--black);
}

.btn-solid:hover {
  background: #fff;
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--white-100);
}

.btn-outline:hover {
  background: var(--white-100);
  color: var(--black);
}

.btn-header {
  position: relative;
  z-index: 5;
  height: 44px;
  padding: 0 20px;
  gap: 16px;
  font-size: 13px;
  flex: 0 0 auto;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--header);
  overflow: hidden;
  background: var(--black);
}

.earth-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.earth {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  user-select: none;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.3) 38%, rgba(0, 0, 0, 0) 58%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 26%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--gutter) 64px;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(30px, 4.6vw, 66px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.24;
}

.lede {
  max-width: 34em;
  text-wrap: pretty;
  margin-top: 30px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.9;
  color: var(--white-72);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
}

.facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 var(--gutter);
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line-soft);
}

.fact {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 26px 24px 30px;
  border-left: 1px solid var(--line-soft);
}

.fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.fact b {
  font-family: Inter, sans-serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.fact span {
  font-size: 15px;
  line-height: 1.5;
}

.fact small {
  display: block;
  font-size: 13px;
  color: var(--white-50);
}

/* Platforms */

.platforms {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}

.marquee {
  overflow: hidden;
  width: 100%;
  padding: 34px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 64s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 92px;
  margin: 0;
  padding: 0 92px 0 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white-100);
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.logo-icon {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: currentColor;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 360px;
  padding: 36px 30px 32px;
  border-left: 1px solid var(--line);
}

.card:first-child {
  padding-left: 0;
  border-left: 0;
}

.index {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--white-50);
}

.card h3,
.guide h3,
.step h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.card h3 {
  margin-top: 20px;
  font-size: clamp(19px, 1.5vw, 21px);
  letter-spacing: 0;
}

.card p,
.guide p,
.step p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-72);
}

.card h3 + p {
  margin-top: 12px;
}

.scope {
  display: grid;
  gap: 8px;
  margin: 20px 0 26px;
}

.scope li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-72);
}

.scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--white-50);
}

.card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
  color: var(--white-100);
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 64px;
  margin-top: 72px;
}

.step {
  position: relative;
  min-width: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--white-100);
}

.step-no {
  display: block;
  font-family: Inter, sans-serif;
  font-size: clamp(60px, 6vw, 84px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
}

.step h3 {
  margin-top: 22px;
  font-size: 26px;
}

.step p {
  max-width: 21em;
  margin-top: 12px;
  font-size: 16px;
}

/* Guides */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}

.guide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 270px;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 240, 250, 0.045), rgba(240, 240, 250, 0));
}

.guide .guide-tag,
.guide .guide-more {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--white-50);
}

.guide h3 {
  margin-top: 14px;
  font-size: 24px;
}

.guide h3 + p {
  margin: 12px 0 26px;
}

.guide .guide-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  color: var(--white-100);
}

/* The title link covers the whole card. */
.guide,
.post {
  position: relative;
  transition: border-color 0.15s ease;
}

.guide h3 a,
.post h2 a,
.post h3 a {
  color: inherit;
  text-decoration: none;
}

.guide h3 a::after,
.post h2 a::after,
.post h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.guide:hover,
.guide:focus-within,
.post:hover,
.post:focus-within {
  border-color: var(--white-100);
}

.guides-all,
.related-all {
  margin-top: 32px;
  text-align: right;
}

.guides-all a,
.related-all a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--white-100);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-decoration: none;
}

/* FAQ + about */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px 88px;
  align-items: start;
}

.faq-list {
  margin-top: 40px;
  border-bottom: 1px solid var(--line);
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::marker {
  content: "";
}

.faq-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--white-100);
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 1px;
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
}

.faq-list details[open] .faq-icon::after {
  display: none;
}

.faq-list details p {
  max-width: 36em;
  margin: -4px 0 24px;
  color: var(--white-72);
  font-size: 15px;
  line-height: 1.8;
}

.about .section-lead {
  font-size: 17px;
}

.offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.office {
  min-width: 0;
  padding: 24px 24px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-72);
}

.office + .office {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.office-tag {
  font-size: 12px;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--white-50);
}

.office-city {
  margin: 10px 0 8px;
  font-size: 32px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--white-100);
}

/* Contact */

.cta {
  padding: clamp(96px, 16vh, 150px) 0;
  text-align: center;
}

.cta .kicker {
  justify-content: center;
}

.cta .kicker::after {
  content: "";
  flex: 0 0 36px;
  height: 1px;
  background: var(--white-100);
}

.cta h2 {
  font-size: clamp(32px, 4.2vw, 60px);
}

.cta .section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 30em;
}

.cta .btn {
  margin-top: 44px;
}

.cta-mail {
  margin-top: 20px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--white-72);
}

.cta-mail a,
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  text-decoration-color: var(--white-50);
}

.cta-mail a:hover,
.site-footer a:hover {
  text-decoration-color: var(--white-100);
}

/* Footer */

.site-footer {
  padding: 44px 0 max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--white-72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 28px 48px;
}

.footer-title {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--white-100);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* Reveal. Content stays visible unless JS marks it pending. */

.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(12px);
}

/* Narrow desktop and tablet */

@media (max-width: 1100px) {
  .site-nav ul {
    gap: 26px;
  }

  .site-header {
    gap: 26px;
  }

  .facts,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line-soft);
  }

  .card {
    min-height: 0;
  }

  .card:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .card:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-fade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 90%),
      linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%);
  }
}

/* Mobile navigation */

@media (max-width: 800px) {
  :root {
    --header: 84px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: calc(var(--header) + 12px) var(--pad) 32px;
    background: #000;
    visibility: hidden;
    pointer-events: none;
  }

  .js .site-nav.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav a {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0;
    font-size: 22px;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line-soft);
  }

  .js .nav-assess {
    display: block;
    margin-top: 28px;
  }

  .js .nav-assess a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--white-100);
    border-radius: 2px;
    background: var(--white-100);
    color: var(--black);
    font-size: 15px;
    text-decoration: none;
  }

  html:not(.js) .site-nav {
    display: none;
  }

  .earth {
    object-position: 72% center;
  }

  .hero-fade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.3) 70%, #000 100%);
  }

  .hero-copy {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .ctas {
    margin-top: 36px;
  }

  .btn {
    height: 52px;
    padding: 0 22px;
    gap: 20px;
  }

  .btn-header {
    height: 40px;
    padding: 0 14px;
    gap: 12px;
  }

  .fact {
    gap: 12px;
    padding: 18px 14px 20px;
  }

  .fact b {
    font-size: 36px;
  }

  .fact span {
    font-size: 14px;
  }

  .fact small {
    font-size: 12px;
  }

  .logo-row {
    gap: 56px;
    padding-right: 56px;
  }

  .logo {
    font-size: 16px;
  }

  .marquee {
    padding: 26px 0;
  }

  .service-grid,
  .steps,
  .guide-grid {
    margin-top: 44px;
  }

  .steps,
  .guide-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .guide {
    min-height: 0;
  }

  .faq-list summary {
    min-height: 64px;
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card:nth-child(odd) {
    padding: 30px 0 28px;
    border-left: 0;
  }

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

  .brand-rule {
    width: 28px;
    margin-bottom: 10px;
  }

  .brand-name {
    font-size: 13px;
    letter-spacing: 0.56em;
    margin-right: -0.56em;
  }

  .brand-sub {
    margin-top: 8px;
    font-size: 8px;
    letter-spacing: 0.26em;
    margin-right: -0.26em;
  }

  .btn-header .arrow {
    display: none;
  }

  .fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .ctas .btn {
    flex: 1 1 auto;
  }

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

  .office + .office {
    margin-top: 24px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .btn-header {
    display: none;
  }
}

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

  .marquee-track {
    animation: none;
    transform: none;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo-row[aria-hidden="true"],
  .logo-clone {
    display: none;
  }

  .logo-row {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 920px;
    padding-right: 0;
    row-gap: 22px;
    column-gap: 36px;
  }

  .reveal,
  .btn,
  .js .site-header,
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: none;
  }

  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}

@media (forced-colors: active) {
  .btn,
  .guide {
    border-color: CanvasText;
  }

  .hero-fade {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --white-72: #f0f0fa;
    --white-50: rgba(240, 240, 250, 0.85);
    --line: rgba(240, 240, 250, 0.85);
    --line-soft: rgba(240, 240, 250, 0.5);
  }
}

/* Contact page */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header) + clamp(48px, 9vh, 96px)) var(--gutter) clamp(56px, 9vh, 88px);
  border-bottom: 1px solid var(--line-soft);
}

.page-hero-art {
  position: absolute;
  top: -34%;
  right: 0;
  z-index: 0;
  display: block;
  width: 78%;
  pointer-events: none;
}

.page-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.1) 80%),
    linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 45%);
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-top: 24px;
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.page-hero .lede {
  margin-top: 22px;
}

.contact {
  padding: clamp(56px, 10vh, 88px) 0 clamp(88px, 14vh, 128px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px 88px;
  align-items: start;
}

.contact h2 {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.contact-note {
  margin-top: 10px;
  font-size: 15px;
  color: var(--white-72);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  margin-top: 36px;
}

.field {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-full,
.form-actions,
.form-status {
  grid-column: 1 / -1;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--white-72);
}

.field > legend {
  margin-bottom: 10px;
}

.hint {
  margin-left: 8px;
  letter-spacing: 0.06em;
  color: var(--white-50);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: rgba(240, 240, 250, 0.03);
  color: var(--white-100);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  display: block;
  min-height: 150px;
  padding: 14px 16px;
  resize: vertical;
}

.field select {
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--white-100) 50%),
    linear-gradient(135deg, var(--white-100) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option {
  background: #111;
  color: var(--white-100);
}

.field ::placeholder {
  color: var(--white-50);
  opacity: 1;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--white-50);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--white-100);
  outline-offset: 0;
}

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

.check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--white-72);
  cursor: pointer;
}

.check input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--white-50);
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.check input:checked {
  border-color: var(--white-100);
  background: var(--white-100);
  box-shadow: inset 0 0 0 3px #000;
}

.check:has(input:checked) {
  border-color: var(--white-100);
  color: var(--white-100);
}

.check:hover {
  border-color: var(--white-50);
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 6px;
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.form-consent {
  font-size: 13px;
  line-height: 1.6;
  color: var(--white-50);
}

.form-status {
  font-size: 15px;
  line-height: 1.6;
}

.form-status:empty {
  display: none;
}

.form-status.is-ok,
.form-status.is-error {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--white-100);
}

.form-status.is-error {
  border-left-style: dashed;
}

.form-status.is-pending {
  color: var(--white-72);
}

.contact-side {
  display: grid;
  gap: 20px;
}

.contact-card {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 240, 250, 0.045), rgba(240, 240, 250, 0));
}

.contact-card h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.contact-card > p,
.contact-wechat p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--white-72);
}

.contact-card .card-tag {
  margin-top: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--white-50);
}

.contact-wechat {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.qr {
  display: block;
  width: 168px;
  height: 168px;
  background: var(--white-100);
}

.qr-empty {
  position: relative;
  display: grid;
  place-items: center;
  color: #000;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-align: center;
}

.qr-empty::before,
.qr-empty::after,
.qr-empty span::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 7px solid #000;
  box-shadow: inset 0 0 0 5px var(--white-100), inset 0 0 0 20px #000;
}

.qr-empty::before {
  top: 12px;
  left: 12px;
}

.qr-empty::after {
  top: 12px;
  right: 12px;
}

.qr-empty span::before {
  bottom: 12px;
  left: 12px;
}

.mail-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 14px;
}

.mail-address {
  font-family: Inter, sans-serif;
  font-size: clamp(20px, 1.7vw, 24px);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--white-50);
}

.mail-address:hover {
  text-decoration-color: var(--white-100);
}

.copy-btn {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white-100);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--white-100);
}

.contact-card .offices {
  margin-top: 18px;
}

.contact-card .office {
  padding-top: 18px;
}

.contact-card .office-city {
  margin: 0 0 4px;
  font-size: 20px;
}

/* Pop-up shown after the contact form is sent */

.notice {
  width: min(440px, calc(100vw - 40px));
  padding: 40px 36px 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0b0b0d;
  color: var(--white-100);
  text-align: center;
}

.notice::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.notice-mark {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border: 1px solid var(--white-100);
  border-radius: 50%;
}

.notice-mark::before,
.notice-mark::after {
  content: "";
  position: absolute;
  background: var(--white-100);
}

/* Success: a tick. */
.notice.is-ok .notice-mark::before {
  left: 16px;
  top: 28px;
  width: 10px;
  height: 1.5px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.notice.is-ok .notice-mark::after {
  left: 22px;
  top: 34px;
  width: 20px;
  height: 1.5px;
  transform: rotate(-50deg);
  transform-origin: left center;
}

/* Failure: a cross. */
.notice.is-error .notice-mark::before,
.notice.is-error .notice-mark::after {
  left: 17px;
  top: 27px;
  width: 20px;
  height: 1.5px;
}

.notice.is-error .notice-mark::before {
  transform: rotate(45deg);
}

.notice.is-error .notice-mark::after {
  transform: rotate(-45deg);
}

.notice h2 {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.notice p:not(.notice-mark) {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--white-72);
}

.notice form {
  margin-top: 28px;
}

.notice .btn {
  justify-content: center;
  min-width: 160px;
  height: 50px;
}

@media (max-width: 1100px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .page-hero-art {
    top: -6%;
    right: -40%;
    width: 150%;
    opacity: 0.6;
  }
}

@media (max-width: 560px) {
  .contact-form,
  .checks {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    padding: 26px 22px;
  }

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

  .contact-wechat .qr {
    margin: 0 auto;
  }
}

@media (forced-colors: active) {
  .contact-card,
  .check,
  .copy-btn {
    border-color: CanvasText;
  }
}

/* Guides: category page */

.guides {
  padding: clamp(40px, 8vh, 72px) 0 clamp(80px, 13vh, 128px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white-72);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.chip small {
  font-size: 12px;
  color: var(--white-50);
}

.chip:hover {
  border-color: var(--white-100);
  color: var(--white-100);
}

.chip[aria-pressed="true"] {
  background: var(--white-100);
  border-color: var(--white-100);
  color: var(--black);
}

.chip[aria-pressed="true"] small {
  color: rgba(0, 0, 0, 0.55);
}

/* The card layouts set display, so hidden cards need the override. */
.post[hidden] {
  display: none !important;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 380px;
  margin-top: 36px;
  border: 1px solid var(--line);
}

.feature-art {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.feature-art img {
  position: absolute;
  top: -30%;
  right: -18%;
  width: 150%;
  max-width: none;
  height: auto;
}

.feature-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 60%);
}

.feature-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 44px 44px 40px;
}

.feature-body h2 {
  margin-top: 18px;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.feature-body .post-ex {
  margin-top: 16px;
  font-size: 16px;
}

.pin {
  display: inline-block;
  margin-right: 12px;
  padding: 5px 10px;
  background: var(--white-100);
  color: var(--black);
  letter-spacing: 0.14em;
}

.post-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--white-100);
  letter-spacing: 0.14em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.post-grid > .post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 290px;
  padding: 32px 30px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 240, 250, 0.045), rgba(240, 240, 250, 0));
}

.post-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--white-50);
}

.post-grid > .post h2,
.post-grid > .post h3 {
  margin-top: 16px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.post-ex {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-72);
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--white-50);
}

.post-meta > .arrow {
  color: var(--white-100);
}

.filter-empty {
  margin-top: 36px;
  color: var(--white-72);
}

.more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.more[hidden] {
  display: none;
}

.page-cta {
  padding: clamp(72px, 12vh, 104px) 0;
}

.page-cta h2 {
  margin-top: 0;
  font-size: clamp(28px, 3vw, 40px);
}

/* Guides: article page */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--white-72);
}

.crumbs a {
  text-decoration: underline;
  text-decoration-color: var(--white-50);
  text-underline-offset: 0.3em;
}

.crumbs a:hover {
  text-decoration-color: var(--white-100);
}

.article-hero h1 {
  max-width: 16em;
  font-size: clamp(28px, 3.6vw, 52px);
}

.article-meta {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white-50);
}

.article {
  padding: clamp(48px, 9vh, 80px) 0 clamp(72px, 12vh, 112px);
}

.article .wrap {
  width: min(820px, 100%);
}

.article-summary {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.8;
}

.prose {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--white-72);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--white-100);
}

/* Body text uses the reader's system Chinese font, so the bundled subset stays small. */
.prose p,
.prose li {
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
}

.prose strong {
  font-weight: 600;
  color: var(--white-100);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.6em;
  padding-left: 1.4em;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 24px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 12px;
  height: 1px;
  background: var(--white-50);
}

.prose ol {
  list-style: decimal;
}

.prose ol li::marker {
  color: var(--white-50);
}

.prose a {
  color: var(--white-100);
  text-underline-offset: 0.3em;
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 64px;
  padding: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(240, 240, 250, 0.045), rgba(240, 240, 250, 0));
}

.article-cta h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.article-cta p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--white-72);
}

.related h2 {
  font-size: clamp(26px, 2.6vw, 36px);
}

.related .post-grid {
  margin-top: 44px;
}

@media (max-width: 1100px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .filters {
    flex-wrap: nowrap;
    margin: 0 calc(var(--pad) * -1);
    padding: 0 var(--pad) 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .feature {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 24px;
  }

  .feature-art {
    height: 200px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-body {
    padding: 28px 24px;
  }

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

  .post-grid > .post {
    min-height: 0;
    padding: 28px 24px 24px;
  }

  .article-summary {
    font-size: 18px;
  }

  .prose {
    font-size: 16px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .article-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
  }
}

@media (forced-colors: active) {
  .chip,
  .feature,
  .post-grid > .post,
  .article-cta {
    border-color: CanvasText;
  }
}

/* 404 page */

.not-found {
  display: flex;
  align-items: center;
  min-height: 78vh;
  border-bottom: 0;
}

/* Privacy policy page */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer-links a {
  text-underline-offset: 0.3em;
}

.h1-en {
  display: block;
  margin-top: 0.5em;
  font-size: 0.5em;
  letter-spacing: 0.12em;
  color: var(--white-72);
}

.lang-switch {
  display: none;
  gap: 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.js .lang-switch {
  display: flex;
}

.policy-title {
  margin-top: 0 !important;
}

.js .policy-title {
  display: none;
}

.policy + .policy {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

[data-policy-lang="zh"] #en,
[data-policy-lang="en"] #zh {
  display: none;
}

[data-policy-lang] .policy + .policy {
  margin-top: 36px;
  padding-top: 0;
  border-top: 0;
}

/* Contact form: required privacy consent */

.field > .consent-check {
  padding: 10px 16px;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--white-100);
}

.consent-check a {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.consent-error {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--white-100);
  color: var(--white-100);
  font-size: 14px;
  line-height: 1.6;
}

/* Same highlight as a focused required field: white border and outline. */
.consent.is-error .consent-check {
  border-color: var(--white-100);
  outline: 2px solid var(--white-100);
  outline-offset: 0;
}

.consent.is-error .consent-check input {
  border-color: var(--white-100);
}
