:root {
  --ink: #18221f;
  --muted: #65716d;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #dce3df;
  --yellow: #ffcc16;
  --yellow-deep: #dcae00;
  --teal: #00aaa7;
  --coral: #ed6841;
  --shadow: 0 18px 44px rgba(24, 34, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: -56px;
  left: 16px;
  padding: 8px 14px;
  color: var(--ink);
  background: var(--yellow);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(24, 34, 31, 0.1);
  background: rgba(251, 252, 250, 0.96);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--yellow);
  background: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 6px 0 0 var(--yellow);
}

.brand__mark::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  content: "";
}

.brand__name {
  display: grid;
  gap: 1px;
  font-size: 15px;
}

.brand__name small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.site-nav a,
.site-nav summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 2px solid transparent;
  color: #40504a;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary::after {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
}

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

.site-nav__policies {
  position: relative;
}

.site-nav__policies[open] summary {
  border-bottom-color: var(--yellow-deep);
  color: var(--ink);
}

.site-nav__policies.is-current summary {
  border-bottom-color: var(--yellow-deep);
  color: var(--ink);
}

.policy-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-menu a {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  font-size: 13px;
}

.policy-menu a:hover,
.policy-menu a[aria-current="page"] {
  border: 0;
  background: #fff5bf;
}

.site-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.action-link,
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button--dark,
.action-link--primary {
  color: #fff;
  background: var(--ink);
}

.button--yellow {
  border-color: var(--yellow);
  color: var(--ink);
  background: var(--yellow);
}

.button:hover,
.action-link:hover {
  transform: translateY(-1px);
}

.button--dark:hover,
.action-link--primary:hover {
  color: var(--ink);
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle::before {
  transform: translateY(-5px);
}

.nav-toggle::after {
  transform: translateY(5px);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(2px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--yellow);
  background-position: center;
  background-size: cover;
}

.home-hero {
  background-image: url("../img/hero-v2.png");
  background-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 58px;
}

.hero__eyebrow,
.section-kicker,
.page-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 470px;
  margin: 0;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
}

.hero p:not(.hero__eyebrow) {
  max-width: 410px;
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.page-hero {
  padding: 84px 0 68px;
  color: #fff;
  background: var(--ink);
}

.page-hero--works {
  display: flex;
  min-height: 320px;
  align-items: center;
  color: var(--ink);
  background-color: var(--yellow);
  background-image: url("../img/hero-v2.png");
  background-position: center;
  background-size: cover;
}

.page-hero__content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-hero__eyebrow {
  color: var(--yellow);
}

.page-hero--works .page-hero__eyebrow {
  color: var(--teal);
}

.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
}

.page-hero p:not(.page-hero__eyebrow) {
  max-width: 660px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero--works p:not(.page-hero__eyebrow) {
  max-width: 520px;
  color: rgba(24, 34, 31, 0.78);
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section--white {
  background: var(--surface);
}

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

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
}

.section-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.section--ink .section-heading p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 72px;
}

.intro-grid__visual {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.intro-grid__visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.intro-grid__copy h2 {
  max-width: 500px;
  margin: 0;
  font-size: 34px;
  line-height: 1.32;
}

.intro-grid__copy p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 18px 16px 18px 0;
  border-right: 1px solid var(--line);
}

.fact:last-child {
  padding-right: 0;
  border-right: 0;
}

.fact strong {
  display: block;
  font-size: 22px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

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

.value-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.value-card__index {
  display: block;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.value-card h3 {
  margin: 44px 0 8px;
  font-size: 22px;
}

.value-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.culture-board {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.culture-board img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.credential,
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.credential__image,
.work-card__image {
  overflow: hidden;
  background: #eef1ef;
}

.credential__image {
  aspect-ratio: 4 / 3;
}

.credential__image img,
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 240ms ease;
}

.credential:hover img,
.work-card:hover img {
  transform: scale(1.025);
}

.credential__body,
.work-card__body {
  padding: 18px 20px 20px;
}

.credential__body h3,
.work-card__body h3 {
  margin: 0;
  font-size: 18px;
}

.credential__body p,
.work-card__body p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-link {
  display: inline-flex;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--yellow-deep);
  font-weight: 800;
}

.work-section + .work-section {
  margin-top: 74px;
}

.work-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.work-section__heading h2 {
  margin: 0 0 13px;
  font-size: 26px;
}

.work-section__heading span {
  color: var(--muted);
  font-size: 13px;
}

.work-card__image {
  aspect-ratio: 4 / 3;
}

.work-card--portrait .work-card__image {
  aspect-ratio: 3 / 4;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 56px;
  align-items: start;
}

.policy-document {
  padding: 8px 0;
}

.policy-document section + section {
  margin-top: 48px;
}

.policy-document h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.4;
}

.policy-document h3 {
  margin: 25px 0 11px;
  font-size: 18px;
}

.policy-document p,
.policy-document li {
  color: #44514c;
}

.policy-document p {
  margin: 0 0 14px;
}

.policy-document ul,
.policy-document ol {
  margin: 0;
  padding-left: 22px;
}

.policy-document li + li {
  margin-top: 9px;
}

.policy-aside {
  position: sticky;
  top: 105px;
  padding: 22px;
  border-top: 3px solid var(--yellow);
  background: #f0f5f2;
}

.policy-aside h2 {
  margin: 0 0 13px;
  font-size: 17px;
}

.policy-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.policy-aside a {
  display: inline-flex;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.auth-page {
  background: #f2f5f3;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
}

.auth-intro {
  display: flex;
  min-height: 660px;
  align-items: flex-end;
  padding: 58px max(48px, calc((100vw - 1180px) / 2));
  color: var(--ink);
  background-color: var(--yellow);
  background-image: url("../img/hero-v2.png");
  background-position: center;
  background-size: cover;
}

.auth-intro__copy {
  max-width: 460px;
}

.auth-intro__copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
}

.auth-intro__copy p {
  margin: 15px 0 0;
  font-weight: 700;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  background: var(--surface);
}

.auth-form {
  width: min(390px, 100%);
}

.auth-form__heading {
  margin-bottom: 30px;
}

.auth-form__heading h1 {
  margin: 0;
  font-size: 30px;
}

.auth-form__heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.field label {
  color: #3d4944;
  font-size: 14px;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #cbd5d0;
  border-radius: 4px;
  outline: none;
  background: #fff;
}

.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 170, 167, 0.14);
}

.field__error {
  min-height: 18px;
  color: #b8462a;
  font-size: 12px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--teal);
}

.auth-form .button {
  width: 100%;
  margin-top: 23px;
}

.auth-form__footnote {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-form__footnote a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-page {
  padding: 70px 0 96px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.account-header h1 {
  margin: 0;
  font-size: 34px;
}

.account-header p {
  margin: 7px 0 0;
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  margin-top: 36px;
}

.account-summary {
  padding: 28px;
  color: #fff;
  background: var(--ink);
}

.account-summary__label {
  margin: 0;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.account-summary__name {
  margin: 14px 0 0;
  font-size: 28px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-summary__date {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.account-details {
  border-top: 2px solid var(--yellow);
  background: var(--surface);
}

.account-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.account-row dt {
  color: var(--muted);
}

.account-row dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  text-align: center;
}

.empty-state h1 {
  margin: 0;
}

.empty-state p {
  margin: 10px 0 22px;
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 16px;
  border-left: 4px solid var(--yellow);
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 54px 0 24px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 44px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__name small {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer .brand__mark {
  border-color: rgba(255, 204, 22, 0.78);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.site-footer p {
  max-width: 330px;
  margin: 15px 0 0;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: fit-content;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--yellow);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 13px;
}

.filing-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filing-link img {
  width: 15px;
  height: 17px;
  object-fit: contain;
}

@media (max-width: 1050px) {
  .site-header__inner {
    gap: 16px;
  }

  .site-nav a,
  .site-nav summary {
    padding: 0 7px;
    font-size: 13px;
  }

  .site-actions .action-link:not(.action-link--primary) {
    display: none;
  }

  .auth-intro {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 850px) {
  .site-header__inner {
    min-height: 66px;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
    order: 3;
  }

  .site-nav {
    position: fixed;
    z-index: 19;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 18px 24px 34px;
    overflow-y: auto;
    background: var(--paper);
  }

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

  .site-nav a,
  .site-nav summary {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-nav__policies {
    width: 100%;
  }

  .policy-menu {
    position: static;
    width: 100%;
    padding: 0 0 4px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .policy-menu a {
    min-height: 40px;
    padding-left: 16px;
    border-bottom: 0;
    font-size: 14px;
  }

  .site-actions {
    margin-left: auto;
  }

  .site-actions .action-link {
    display: none;
  }

  .site-actions .action-link--primary {
    display: inline-flex;
  }

  .hero {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .intro-grid,
  .account-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .policy-aside {
    position: static;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    min-height: 340px;
    padding: 45px 24px;
  }

  .auth-panel {
    padding: 50px 24px 64px;
  }
}

@media (max-width: 640px) {
  .container,
  .hero__content,
  .page-hero__content {
    width: min(100% - 32px, 1180px);
  }

  .brand__name {
    font-size: 14px;
  }

  .brand__name small {
    display: none;
  }

  .hero {
    min-height: 520px;
    background-position: 42% center;
  }

  .page-hero--works,
  .auth-intro {
    background-position: 42% center;
  }

  .hero__content {
    padding-bottom: 36px;
  }

  .hero h1 {
    max-width: 310px;
    font-size: 32px;
  }

  .hero p:not(.hero__eyebrow) {
    max-width: 300px;
    font-size: 15px;
  }

  .page-hero {
    padding: 58px 0 50px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .intro-grid__copy h2 {
    font-size: 27px;
  }

  .facts,
  .value-grid,
  .credentials-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .value-card {
    min-height: 185px;
  }

  .value-card h3 {
    margin-top: 30px;
  }

  .work-section + .work-section {
    margin-top: 52px;
  }

  .work-section__heading {
    display: block;
  }

  .work-section__heading span {
    display: block;
    margin-bottom: 12px;
  }

  .policy-document h2 {
    font-size: 22px;
  }

  .account-page {
    padding: 48px 0 64px;
  }

  .account-header {
    display: block;
  }

  .account-header .button {
    margin-top: 18px;
  }

  .account-header h1 {
    font-size: 29px;
  }

  .account-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__bottom {
    display: block;
  }

  .site-footer__bottom .filing-link {
    margin-top: 9px;
  }
}
