:root {
  color-scheme: light;
  --ink: #102238;
  --navy: #0c1b2b;
  --navy-deep: #081522;
  --lime: #d5f343;
  --muted: #445a6d;
  --line: #d7e1e7;
  --paper: #f1f5f7;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #2374bb; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure { margin: 0; }
p + p { margin-top: .9rem; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 4vw, 3.35rem); letter-spacing: -.045em; margin-bottom: 1.85rem; }
h3 { font-size: 1.4rem; letter-spacing: -.022em; }
.wrap { width: min(1180px, calc(100% - 5rem)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.skip { position: absolute; inset: .75rem auto auto 1rem; transform: translateY(-200%); z-index: 4; background: white; color: var(--ink); padding: .75rem; }
.skip:focus { transform: none; }

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem max(2.5rem, calc((100vw - 1180px) / 2));
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 1px solid #365064;
}
.brand { flex: 0 0 164px; }
.site-head nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem 1.5rem; font-size: .91rem; }
.site-head nav a { text-decoration: none; padding-block: .35rem; }
.site-head nav a:hover, .text-link:hover { text-decoration: underline; }
.site-head .nav-cta { color: var(--lime); border: 1px solid #708333; padding: .55rem .8rem; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(660px, 82vh); background: var(--navy); color: #fff; }
.hero-media { position: absolute; inset: 0 0 0 40%; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 48%; }
.hero::after { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(90deg, #0c1b2b 0%, #0c1b2b 39%, #0c1b2bdc 52%, #0c1b2b28 79%); }
.hero-copy { padding-block: clamp(4.3rem, 10vw, 8rem); }
.hero h1 { max-width: 10ch; font-size: clamp(3rem, 7vw, 6.1rem); line-height: .99; letter-spacing: -.063em; }
.hero h1:lang(zh) { max-width: 12ch; letter-spacing: -.03em; }
.hero p { max-width: 35rem; color: #d4e0e8; font-size: 1.05rem; }
.hero .hero-lead { max-width: 31rem; margin-top: 1.45rem; color: #fff; font-weight: 650; font-size: clamp(1.2rem, 2vw, 1.55rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.35rem; }
.hero .actions { margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; gap: .78rem; width: fit-content; padding: .8rem 1.05rem; background: var(--lime); color: #162206; text-decoration: none; font-weight: 700; }
.button:hover { background: #ebff90; }
.text-link { font-weight: 650; }

.service-grid, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.card { padding: clamp(1.15rem, 2.4vw, 1.95rem); border: 1px solid var(--line); background: #fff; }
.card h3 { margin-bottom: .85rem; }
.card p, .card li, .step p { color: var(--muted); }
.service ul { padding-left: 1.15rem; margin: 1rem 0 0; }
.service li + li { margin-top: .32rem; }
.service li::marker { color: #527300; }
.featured { background: #10263b; color: #fff; border-color: #10263b; border-top: .28rem solid var(--lime); }
.featured p, .featured li { color: #d5e1ea; }
.featured li::marker { color: var(--lime); }

.evidence { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.1rem; }
.robot-case { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: var(--navy); color: #fff; }
.robot-case figure { position: relative; min-height: 19rem; margin: 0; }
.robot-case img { width: 100%; height: 100%; position: absolute; object-fit: cover; }
.robot-case figcaption { position: absolute; bottom: .55rem; left: .55rem; padding: .22rem .38rem; color: #fff; background: #081522e8; font-size: .69rem; }
.robot-case > div { align-self: center; padding: clamp(1rem, 2.3vw, 1.65rem); }
.robot-case h3 { margin-bottom: .75rem; }
.robot-case p { color: #dce6ef; }
.named-cases { display: grid; gap: 1.1rem; }
.category { margin-bottom: .5rem; color: #426100; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.case .category { color: #426100; }
.case-photo { width: 100%; aspect-ratio: 2.4; object-fit: cover; object-position: center 62%; margin-top: 1rem; }
.robot-case .category { color: var(--lime); }
.project-name { font-weight: 700; }

.step { border-top: .2rem solid #9bb730; padding-top: 1rem; }
.step h3 { margin-bottom: .5rem; }
.contact { background: #122e47; color: #fff; }
.contact h2 { margin-bottom: .7rem; }
.contact p { max-width: 34rem; color: #dee9f1; }
.contact-grid, .footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.6rem; }
.site-footer { padding-block: 1.3rem; background: var(--navy-deep); color: #d4e0e8; }

@media (max-width: 860px) {
  .site-head { padding-inline: 1.5rem; }
  .wrap { width: calc(100% - 3rem); }
  .case-grid { grid-template-columns: 1fr; }
  .named-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::after { background: linear-gradient(90deg, #0c1b2b 17%, #0c1b2bed 42%, #0c1b2b50); }
}

@media (max-width: 630px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: .6rem; padding: .9rem 1rem; }
  .brand { flex-basis: auto; }
  .brand img { width: 135px; }
  .site-head nav { justify-content: flex-start; gap: .25rem .8rem; font-size: .84rem; }
  .wrap { width: calc(100% - 2rem); }
  .hero { min-height: auto; }
  .hero-media { inset-inline-start: 0; }
  .hero::after { background: linear-gradient(90deg, #0c1b2bf5, #0c1b2bb8); }
  .service-grid, .steps, .named-cases { grid-template-columns: 1fr; }
}

@media (max-width: 410px) {
  .robot-case { grid-template-columns: 1fr; }
  .robot-case figure { min-height: 12rem; }
  .robot-case img { object-position: center 62%; }
}
