@font-face {
  font-family: Geist;
  src: url('/assets/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f4f1e9;
  --surface: #fffdf7;
  --ink: #121516;
  --muted: #515753;
  --line: #d5d3ca;
  --blue: #2449dc;
  --gutter: clamp(1.125rem, 5vw, 4.75rem);
  --radius: 1.375rem;
  font-family: Geist, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }
::selection { color: white; background: var(--blue); }
:focus-visible { outline: 3px solid #335aff; outline-offset: 4px; }

.shell { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 8; padding: .75rem 1rem; background: var(--ink); color: white; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}
.brand { display: inline-flex; gap: .45rem; align-items: center; justify-self: start; font-size: 1rem; font-weight: 720; letter-spacing: -.035em; white-space: nowrap; }
.brand img { flex: none; object-fit: contain; }
.nav, .languages { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); font-size: .875rem; font-weight: 570; }
.nav a, .footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 2.75rem; }
.nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; text-underline-offset: .3em; }
.languages { justify-self: end; gap: .25rem; padding: .1875rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.languages a { min-height: 2.5rem; display: grid; place-items: center; padding: .15rem .65rem; white-space: nowrap; border-radius: inherit; }
.languages a[aria-current='true'] { background: var(--ink); color: white; }
.languages a[aria-current='false']:hover { background: #e8e6df; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, .77fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6.5vw, 6.875rem);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font: 650 .85rem/1.4 ui-monospace, Consolas, 'Microsoft YaHei', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.85rem; height: 1px; background: currentColor; }
h1 { font-weight: 635; font-size: clamp(3.25rem, 5.5vw, 5.6rem); line-height: 1.01; letter-spacing: -.078em; }
h1 em { display: block; color: var(--blue); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.065em; }
.hero-description { max-width: 34rem; margin-top: 1.65rem; color: var(--muted); font-size: clamp(1.06rem, 1.65vw, 1.33rem); line-height: 1.57; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.85rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: .625rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s, color .18s, border-color .18s;
}
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--blue); }
.button-outline { color: var(--ink); border-color: #aaa9a0; }
.button-outline:hover { background: var(--surface); border-color: var(--ink); }
.portrait {
  isolation: isolate;
  position: relative;
  justify-self: stretch;
  border-radius: var(--radius);
  border: 1px solid #cdcfc7;
  background: var(--surface);
  padding: .5rem;
  box-shadow: 0 1.25rem 3rem #201d1418;
}
.portrait::before {
  position: absolute;
  z-index: -1;
  content: '';
  right: clamp(-1.1rem, -1.6vw, -.5rem);
  top: clamp(-1.275rem, -1.9vw, -.75rem);
  width: 44%;
  height: 42%;
  background: var(--blue);
  border-radius: 1.15rem;
}
.portrait img { width: 100%; height: auto; aspect-ratio: 1.08; object-fit: cover; object-position: 50% 45%; border-radius: calc(var(--radius) - .35rem); }
.portrait figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .85rem; padding: .8rem .5rem .55rem; }
.portrait strong { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.025em; }
.portrait figcaption span { color: var(--muted); font-size: .875rem; }

.services { padding-block: clamp(3.5rem, 6vw, 5.75rem); border-block: 1px solid var(--line); background: var(--surface); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); align-items: end; gap: 1rem 3rem; margin-bottom: clamp(2rem, 3.5vw, 3.25rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 4.375rem); letter-spacing: -.066em; line-height: 1.04; font-weight: 640; }
.section-intro p, .about p { color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.175rem); line-height: 1.55; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: clamp(.9rem, 2vw, 1.65rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--card-bg);
  --accent: #2849c2;
  --mark-bg: #e3e9ff;
  --card-bg: #f9faff;
}
.service-card:nth-child(odd) { border-right: 1px solid var(--line); }
.service-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.service-data { --accent: #087057; --mark-bg: #d9efe5; --card-bg: #f7fbf8; }
.service-fintech { --accent: #8b4e0d; --mark-bg: #f4e4ca; --card-bg: #fffaf0; }
.service-global { --accent: #6a4494; --mark-bg: #ede4f5; --card-bg: #fcf8ff; }
.service-card h3 { font-size: clamp(1.375rem, 2.1vw, 1.85rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 685; }
.service-card p { margin-top: .65rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.service-card ul { margin: 1.1rem 0 0; padding-inline-start: 1.05rem; font-size: .9375rem; line-height: 1.55; }
.service-card li + li { margin-top: .2rem; }
.service-card li::marker { color: var(--accent); }
.service-mark { width: 3rem; height: 3rem; display: grid; justify-content: center; align-content: center; align-items: center; gap: 3px; border-radius: .9rem; color: var(--accent); background: var(--mark-bg); }
.mark-ai { grid-template-columns: repeat(2, auto); }
.mark-ai i { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.mark-ai i:first-child, .mark-ai i:last-child { background: currentColor; }
.mark-data { grid-auto-flow: column; align-items: end; }
.mark-data i { width: 5px; height: 10px; background: currentColor; border-radius: 1px; }
.mark-data i:nth-child(2) { height: 15px; }
.mark-data i:last-child { height: 21px; }
.mark-fintech i { width: 20px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; }
.mark-fintech i:first-child { background: currentColor; }
.mark-global { position: relative; }
.mark-global i:first-child { width: 21px; height: 21px; border: 1.5px solid currentColor; border-radius: 50%; }
.mark-global i:last-child { position: absolute; left: 50%; top: 50%; width: 9px; height: 20px; border: 1px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.mark-global::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; border-top: 1px solid currentColor; transform: translate(-50%, -50%); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 2.25rem clamp(2rem, 7vw, 7rem); align-items: start; padding-block: clamp(3.75rem, 7.3vw, 6.5rem); }
.about p { max-width: 34rem; margin-top: 1.1rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .6rem; color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: .25em; }
.text-link:hover { color: var(--ink); }
.approach h3 { font-size: 1.3rem; font-weight: 680; letter-spacing: -.035em; margin-bottom: .75rem; }
.approach dl { border-block: 1px solid var(--line); }
.approach dl > div { padding: .85rem 0; }
.approach dl > div + div { border-top: 1px solid var(--line); }
.approach dt { font-weight: 665; }
.approach dd { margin-top: .25rem; color: var(--muted); line-height: 1.45; }

.contact { background: #14191d; color: #fcfbf4; }
.contact-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: 2rem clamp(2rem, 6vw, 6rem); padding-block: clamp(3.25rem, 6vw, 5.75rem); }
.contact-intro h2 { margin-top: .85rem; }
.contact-intro p { max-width: 28rem; margin-top: .85rem; color: #d0d6d3; font-size: 1.125rem; line-height: 1.5; }
.lion-avatar { display: block; width: 3.125rem; height: 3.125rem; border-radius: .8rem; background: #fff3cf url('/assets/lion-idle.png') left center / 400% 100% no-repeat; image-rendering: pixelated; }
.contact-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-self: stretch; }
.contact-options article { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1rem, 2.1vw, 1.5rem); border: 1px solid #4b555b; border-radius: 1rem; background: #20272c; }
.contact-options h3 { font-size: 1.28rem; font-weight: 665; letter-spacing: -.04em; }
.contact-options p { margin: .5rem 0 1.15rem; color: #d9dedb; line-height: 1.5; }
.contact-options .button { margin-top: auto; }
.button-light { background: #fcfbf4; color: var(--ink); }
.button-light:hover { background: #c9d6ff; }
.button-dark-outline { border-color: #9ca7ad; }
.button-dark-outline:hover { background: #313b43; border-color: #e2e7ea; }
.contact :focus-visible { outline-color: #9fbbff; }
.footer-inner { min-height: 5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; }
.footer-inner > a:last-child { font-size: .9375rem; color: var(--muted); }

#lion-handoff { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: min(27rem, 100% - 2rem); padding: 1.5rem; box-shadow: 0 1rem 4rem #0005; }
#lion-handoff::backdrop { background: #121516a8; }
.handoff-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; font: inherit; font-size: 1.75rem; line-height: 1; border: 1px solid var(--line); color: var(--ink); background: none; border-radius: 50%; }
.close:hover { background: var(--paper); }
#lion-handoff h2 { font-size: 2rem; letter-spacing: -.04em; }
#lion-handoff p { margin: .85rem 0 1.25rem; line-height: 1.55; color: var(--muted); }

:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3, :lang(zh-CN) .eyebrow { letter-spacing: 0; }
:lang(zh-CN) h1 { font-size: clamp(2.65rem, 5.5vw, 5rem); line-height: 1.14; }
:lang(zh-CN) h1 em { font: inherit; font-weight: 600; letter-spacing: inherit; }

@media (max-width: 54rem) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 2rem; }
  h1 { font-size: clamp(2.85rem, 7vw, 4.25rem); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 42rem) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 .5rem; padding-block: .4rem; }
  .languages { grid-column: 2; grid-row: 1; }
  .nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; max-width: 25rem; gap: .7rem; }
  .hero, .section-intro, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; gap: 2.75rem; }
  .portrait { width: min(100%, 29rem); }
  .section-intro { align-items: start; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(odd) { border-right: 0; }
  .service-card:not(:last-child) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 28rem) {
  .brand { gap: .15rem; font-size: .9375rem; }
  .brand img { width: 2.375rem; height: 2.375rem; }
  .languages a { min-height: 2.4rem; padding-inline: .48rem; }
  .service-card { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .service-mark { width: 2.5rem; height: 2.5rem; }
  .portrait figcaption { padding-inline: .35rem; }
  .contact-options { grid-template-columns: 1fr; }
}

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