/* BOYAN TECHNOLOGY CO. LTD */
@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/sora.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../assets/fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --navy: #0a1438;
  --navy-deep: #060d28;
  --cobalt: #1f4fff;
  --sky: #7cc4ff;
  --mist: #eef2fa;
  --white: #fff;
  --ink: #0f1a3a;
  --slate: #56607f;
  --line: #d5dcec;
  --line-dark: rgba(124, 196, 255, .22);
  --display: "Sora", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--sky); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-title { font-size: clamp(32px, 4.4vw, 56px); max-width: 18ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--slate); max-width: 56ch; }
.dark { background: var(--navy); color: var(--white); }
.dark .lede { color: #b9c5e6; }
.tint { background: var(--mist); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 16px/1 var(--body);
  text-decoration: none;
  padding: 17px 28px;
  border-radius: 999px;
  border: 1px solid var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.btn:hover { background: #3a66ff; border-color: #3a66ff; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .38); }
.btn.ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .6; cursor: default; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  color: var(--white);
  transition: background .25s, box-shadow .25s;
}
.site-header.solid { background: rgba(10, 20, 56, .92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font: 600 19px/1 var(--display); letter-spacing: .14em; }
.brand-name small { display: block; margin-top: 5px; font: 400 11.5px/1 var(--body); letter-spacing: .08em; color: #b9c5e6; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a { font-size: 15.5px; text-decoration: none; color: #d8e0f5; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav .btn { padding: 12px 20px; font-size: 15px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 85% 40%, #12266b 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.hero-globe {
  position: absolute;
  right: max(-5vw, -80px); top: 50%;
  width: min(64vw, 820px); aspect-ratio: 1;
  transform: translateY(-46%);
}
.hero-globe canvas { width: 100%; height: 100%; }
.hero > .wrap { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 132px; padding-bottom: 80px; }
.hero-tagline { font: 500 16px/1.4 var(--display); color: var(--sky); letter-spacing: .02em; margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 5.8vw, 80px); line-height: 1.04; letter-spacing: -.035em; max-width: 13ch; }
.hero .lede { margin-top: 30px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(150px, 17vw, 230px) clamp(56px, 7vw, 100px); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 13, 40, .94) 0%, rgba(6, 13, 40, .72) 45%, rgba(6, 13, 40, .2) 100%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-label { font: 500 16px/1.4 var(--display); color: var(--sky); margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -.03em; max-width: 15ch; }
.page-hero .lede { margin-top: 26px; }
img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Sections over a photo */
.has-bg { position: relative; overflow: hidden; }
.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(8, 16, 46, .84); }
.has-bg > .wrap { position: relative; z-index: 2; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-title.wide { max-width: 22ch; }
.section-title.compact { font-size: clamp(30px, 3.6vw, 46px); max-width: none; }
img[src*="crossborder"], img[src*="team"] { object-position: 100% 50% !important; }
.text-link { display: inline-block; color: var(--cobalt); font-weight: 500; text-underline-offset: 5px; }
.ticks li { position: relative; padding: 0 0 12px 22px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--cobalt); }

/* Services */
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.svc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 80% 50%; }
.svc-card > div { padding: 28px 28px 20px; }
.svc-card h3 { font-size: 25px; }
.svc-card .sub { margin: 12px 0 22px; color: var(--slate); }
.svc-card .ticks { font-size: 16px; }

.svc-rows { display: grid; gap: clamp(56px, 8vw, 112px); }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 72px; align-items: center; scroll-margin-top: 100px; }
.svc-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 75% 50%; border-radius: 18px; }
.svc-row.flip img { order: 2; }
.svc-row h2 { font-size: clamp(30px, 3.6vw, 46px); }
.svc-row .lede { margin: 18px 0 28px; }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; margin-top: clamp(36px, 5vw, 64px); }
.why > img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: 18px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-content: start; }
.why-grid > div { padding-block: 24px; border-top: 2px solid var(--ink); }
.why-grid h3 { font-size: 21px; letter-spacing: -.01em; margin-bottom: 10px; }
.why-grid p { color: var(--slate); font-size: 16.5px; }

/* Who */
.who { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.who .section-title { max-width: 14ch; }
.who li { padding-block: 22px; border-top: 1px solid var(--line-dark); }
.who li:last-child { border-bottom: 1px solid var(--line-dark); }
.who li strong { display: block; font: 500 clamp(20px, 2vw, 26px)/1.25 var(--display); letter-spacing: -.01em; }
.who li span { color: #b9c5e6; }

/* How */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; margin-top: clamp(40px, 6vw, 72px); counter-reset: step; }
.steps li { position: relative; padding-top: 34px; counter-increment: step; }
.steps li::before {
  content: ""; position: absolute; left: 0; right: -28px; top: 8px;
  height: 2px; background: var(--line);
}
.steps li:last-child::before { right: 0; }
.steps li::after {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cobalt); box-shadow: 0 0 0 5px var(--mist);
}
.steps h3 { font-size: 21px; letter-spacing: -.01em; margin-bottom: 8px; }
.steps h3::before { content: counter(step) ". "; color: var(--cobalt); }
.steps p { color: var(--slate); font-size: 16px; }
.formats { margin-top: clamp(48px, 6vw, 80px); }
.formats h3 { font-size: 21px; letter-spacing: -.01em; margin-bottom: 20px; }
.formats ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.formats li { background: var(--white); border-radius: 14px; padding: 22px 24px; }
.formats li strong { display: block; font: 500 18px/1.3 var(--display); }
.formats li span { color: var(--slate); font-size: 15.5px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; align-items: center; }
.about .section-title { margin-bottom: 28px; }
.about p + p { margin-top: 20px; }
.about .lede { color: var(--ink); }
.about .text-link { margin-top: 28px; }
.about img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% 50%; border-radius: 18px; }

.company { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.company .lede { margin-top: 24px; }
.facts { border-top: 2px solid var(--ink); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--slate); flex: none; }
.facts dd { text-align: right; font-weight: 500; }

/* Call to action */
.cta .section-title { max-width: none; }
.cta .lede { margin-top: 24px; }
.cta-note { margin-top: 28px; font-size: 15.5px; color: #b9c5e6; }

/* Insights */
.insights { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; align-items: start; }
.toc { position: sticky; top: 108px; border-top: 2px solid var(--ink); }
.toc ol { counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding-block: 16px; text-decoration: none; font-weight: 500; line-height: 1.4; }
.toc a:hover { color: var(--cobalt); }
.article { max-width: 68ch; scroll-margin-top: 100px; }
.article + .article { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.article h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 24px; }
.article h3 { font-size: 20px; letter-spacing: -.01em; margin: 30px 0 8px; }
.article p + p { margin-top: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px 80px; align-items: start; }
.contact h2 { font-size: clamp(26px, 3vw, 36px); }
.contact-details { margin: 28px 0 32px; display: grid; gap: 18px; }
.contact-details dt { font-size: 14.5px; color: var(--slate); }
.contact-details dd a { color: var(--cobalt); text-underline-offset: 4px; }
.btn.outline { background: transparent; color: var(--cobalt); }
.btn.outline:hover { background: var(--cobalt); color: var(--white); }
.teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 72px; align-items: start; }
.teaser .text-link { margin-top: 24px; }

.form { display: grid; gap: 20px; background: var(--mist); border-radius: 18px; padding: clamp(24px, 4vw, 44px); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: block; font-size: 14.5px; color: var(--slate); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%;
  font: 400 16.5px/1.4 var(--body); color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(31, 79, 255, .15); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-foot small { font-size: 14.5px; color: var(--slate); }
.form .error { color: #b3261e; font-size: 15.5px; }
.form .error:empty { display: none; }
.form .thanks { display: none; color: #0b6b3a; font-size: 16.5px; font-weight: 500; }
.form.sent .thanks { display: block; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c5e6; font-size: 15px; padding-block: 64px 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(2, minmax(0, 3fr)); gap: 40px 64px; }
.site-footer .brand { color: var(--white); margin-bottom: 20px; }
.site-footer h3 { font: 500 15px/1.4 var(--body); letter-spacing: 0; color: var(--white); margin-bottom: 14px; }
.site-footer ul + h3 { margin-top: 28px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14px; color: #8fa0cf; }

/* Plain text pages */
.prose { max-width: 720px; padding-block: 64px 96px; }
.prose h2 { font-size: 24px; letter-spacing: -.01em; margin: 44px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--cobalt); text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .svc-cards, .svc-row, .why, .who, .about, .company, .contact, .insights, .teaser { grid-template-columns: 1fr; }
  .svc-row.flip img { order: 0; }
  .why > img { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .toc { position: static; }
  .formats ul { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 30px 38px; }
  .steps li::before { left: 6px; right: auto; top: 8px; bottom: -8px; width: 2px; height: auto; }
  .steps li:last-child::before { display: none; }
  .steps li::after { top: 6px; }
  .hero-globe { opacity: .4; right: -30vw; width: 110vw; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line-dark);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; }
  .nav .btn { margin-top: 12px; padding: 16px; }
  .site-header:has(.nav.open) { background: var(--navy); }
  .hero > .wrap { padding-top: 116px; }
  .why-grid, .formats ul, .form .row { grid-template-columns: 1fr; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
