:root {
  --paper: #f7f7f2;
  --ink: #1b201e;
  --muted: #535952;
  --rule: #d5d8cf;
  --coal: #151616;
  --orange: #ff8956;
  --rust: #a54926;
  --gutter: clamp(24px, 5.55vw, 88px);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, figure, ol, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
::selection { background: #ffd2b9; color: #1b201e; }
:focus-visible { outline: 3px solid #b75021; outline-offset: 5px; }
.hero :focus-visible, .expertise :focus-visible { outline-color: #ffb790; }
.wrap { width: min(1360px, calc(100% - var(--gutter) - var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: -80px; left: 12px; padding: 12px 18px; color: white; background: var(--ink); }
.skip-link:focus { top: 10px; }
.masthead { position: relative; z-index: 2; background: var(--paper); }
.mast-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--ink); }
.masthead .brand { flex-shrink: 0; }
.brand img { width: 40px; height: auto; }
.brand-type { display: grid; gap: 4px; }
.brand-type b { font-size: 24px; font-weight: 825; letter-spacing: -.06em; line-height: .83; }
.brand-type small { font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .18em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: clamp(23px, 2.8vw, 44px); }
.nav-short { display: none; }
.site-nav a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 14px; font-weight: 580; }
.site-nav a:hover, .back-top:hover { color: var(--rust); }
.site-nav .nav-case { min-height: 39px; padding: 0 17px; border: 1px solid #afb4aa; }
.site-nav .nav-case:hover { border-color: var(--rust); }
.site-nav .language-link, .footer-language { color: var(--rust); font-weight: 650; }
.site-nav .language-link { position: relative; padding-left: clamp(13px, 1.6vw, 24px); margin-left: -8px; }
.language-link::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 15px; background: var(--rule); transform: translateY(-50%); }
.language-link:hover, .footer-language:hover, .error-language:hover { text-decoration: underline; text-underline-offset: 3px; }

.arrow { --angle: 0deg; display: inline-block; position: relative; flex: 0 0 auto; width: 16px; height: 12px; transform: rotate(var(--angle)); }
.arrow::before, .arrow::after { position: absolute; content: ""; }
.arrow::before { width: 14px; height: 1.6px; left: 0; top: calc(50% - .8px); background: currentColor; }
.arrow::after { width: 7px; height: 7px; right: 1px; top: 50%; border-top: 1.7px solid currentColor; border-right: 1.7px solid currentColor; transform: translateY(-50%) rotate(45deg); }
.arrow.diagonal { --angle: 45deg; }
.arrow.up { --angle: -90deg; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--rust); font: 650 11px/1.4 var(--mono); letter-spacing: .13em; }
.eyebrow.light { color: #ffa675; }
.dash { display: inline-block; width: 27px; height: 2px; background: currentColor; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: #fbfaf5; background: var(--coal); }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 74%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 48%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--coal) 0%, rgba(21,22,22,.94) 8%, rgba(21,22,22,.72) 22%, rgba(21,22,22,.18) 45%, transparent 62%), linear-gradient(0deg, rgba(8,10,10,.45), transparent 24%); }
.hero-inner { position: relative; min-height: clamp(465px, 38.4vw, 590px); display: flex; align-items: center; }
.hero-copy { padding-block: clamp(58px, 5.15vw, 85px); width: min(50%, 610px); }
.hero h1 { margin: 26px 0 22px; font-size: clamp(56px, 5vw, 83px); font-weight: 710; letter-spacing: -.055em; line-height: 1.16; }
.hero h1 span { display: block; white-space: nowrap; }
.hero-description { max-width: 29em; color: #d5d6d1; font-size: clamp(15px, 1.14vw, 18px); line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(20px, 2.1vw, 35px); margin-top: 30px; }
.primary-action, .text-action { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 46px; font-size: 14px; font-weight: 650; }
.primary-action { padding: 0 19px; color: #231912; background: var(--orange); }
.primary-action:hover { background: #ffac83; }
.text-action { color: #f1f0ea; gap: 10px; }
.text-action:hover { color: #ffab82; }
.hero-caption { position: absolute; right: 0; bottom: 22px; display: flex; align-items: center; gap: 9px; color: #fff6eb; font-size: 11px; letter-spacing: .08em; text-shadow: 0 1px 5px #000; }
.hero-caption span { width: 18px; height: 1px; background: var(--orange); }
.hero-caption i { color: var(--orange); font-style: normal; }
html[lang="en"] .hero-copy { width: min(55%, 710px); }
html[lang="en"] .hero h1 { font-size: clamp(48px, 4.5vw, 75px); font-weight: 660; line-height: 1.04; letter-spacing: -.04em; }
html[lang="en"] .hero h1 span { white-space: normal; }
html[lang="en"] .hero-description { max-width: 32em; line-height: 1.58; }
html[lang="en"] h2 { letter-spacing: -.038em; }

.section { padding-block: clamp(60px, 5.7vw, 93px); scroll-margin-top: 14px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(27px, 2.65vw, 43px); }
h2 { font-size: clamp(37px, 3.35vw, 58px); font-weight: 680; letter-spacing: -.055em; line-height: 1.2; }
.eyebrow + h2 { margin-top: 13px; }
.section-intro { color: var(--muted); font-size: 15px; line-height: 1.8; }
html[lang="en"] .section-intro { max-width: 36em; line-height: 1.6; }
html[lang="en"] .case h3, html[lang="en"] .steps h3 { line-height: 1.2; text-wrap: balance; }
.case-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 33px); row-gap: clamp(37px, 3.45vw, 58px); }
.case { grid-column: span 4; min-width: 0; }
.case:first-child { grid-column: span 7; }
.case:nth-child(2) { grid-column: span 5; }
.case-image { overflow: hidden; background: #dce0d5; }
.case-image img { width: 100%; height: auto; aspect-ratio: 1.64; object-fit: cover; }
.feature .case-image img { height: clamp(235px, 23.3vw, 354px); }
.case-copy { padding: 18px 0 0; }
.category { display: flex; align-items: center; gap: 8px; color: var(--rust); font-size: 12px; font-weight: 650; letter-spacing: .05em; }
.category::before { content: ""; width: 15px; height: 1px; background: currentColor; }
.case h3 { margin: 6px 0 7px; font-size: clamp(21px, 1.7vw, 29px); font-weight: 665; letter-spacing: -.04em; line-height: 1.4; }
.case-copy > p:not(.category), .case details p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.case details { margin-top: 9px; }
.case summary { display: inline-flex; align-items: center; gap: 9px; min-height: 35px; color: #31382f; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.case summary::-webkit-details-marker { display: none; }
.case summary:hover { color: var(--rust); }
.plus { display: inline-block; position: relative; width: 12px; height: 12px; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { width: 10px; height: 1.5px; top: calc(50% - .75px); left: 1px; }
.plus::after { width: 1.5px; height: 10px; left: calc(50% - .75px); top: 1px; }
details[open] .plus::after { display: none; }
.case details p { max-width: 43em; margin: 5px 0 7px; border-left: 2px solid #dd9c79; padding-left: 12px; }
.gallery-note { margin-top: 26px; padding-top: 13px; border-top: 1px solid var(--rule); color: #60665d; font-size: 12px; line-height: 1.7; }

.expertise { background: #202522; color: #f6f6ee; }
.expertise-grid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(38px, 8vw, 130px); }
.engineering-lede { max-width: 24em; margin-top: 22px; color: #d0d4ca; font-size: 16px; line-height: 1.85; }
.power-chain { margin-top: 34px; }
.power-chain figcaption { color: #b9c2b6; font-size: 12px; margin-bottom: 13px; }
.power-chain ol { display: flex; align-items: center; list-style: none; padding: 0; }
.power-chain li { position: relative; padding: 8px 11px; border: 1px solid #70766b; color: #ecede3; font-size: 13px; line-height: 1.45; white-space: nowrap; }
.power-chain li + li { margin-left: 17px; }
.power-chain li + li::before { position: absolute; top: 50%; left: -17px; width: 16px; height: 1px; content: ""; background: #b78c70; }
.power-chain li + li::after { position: absolute; top: calc(50% - 2px); left: -6px; width: 4px; height: 4px; content: ""; border: solid #b78c70; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.expertise-list { border-top: 1px solid #525a51; }
.expertise-list > div { padding: 19px 0 21px; border-bottom: 1px solid #525a51; }
.expertise-list dt { margin-bottom: 8px; font-weight: 620; font-size: clamp(19px, 1.4vw, 23px); letter-spacing: -.03em; }
.expertise-list dd { color: #c8cec3; font-size: 14px; line-height: 1.85; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 40px); list-style: none; padding: 0; }
.steps li { border-top: 1px solid #aeb4a8; padding-top: 14px; }
.step-count { color: var(--rust); font: 600 15px/1.4 var(--mono); }
.steps h3 { margin: 20px 0 8px; font-size: 21px; font-weight: 650; letter-spacing: -.04em; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: flex; align-items: center; gap: 26px; min-height: 102px; }
.footer .brand img { width: 32px; }
.footer .brand-type b { font-size: 19px; }
.footer .brand-type small { font-size: 6.5px; }
.footer-domain { color: var(--muted); font: 12px/1.4 var(--mono); }
.footer-language { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; font-size: 13px; }
.back-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.error-page { min-height: 80vh; display: grid; align-content: center; justify-items: start; gap: 24px; }
.error-page h1 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -.05em; }
.error-language { color: var(--rust); }

@media (max-width: 880px) {
  :root { --gutter: clamp(22px, 4.7vw, 41px); }
  .hero-copy { width: 57%; }
  html[lang="en"] .hero-copy { width: 61%; }
  html[lang="en"] .hero h1 { font-size: clamp(43px, 5.55vw, 50px); }
  html[lang="en"] .hero-description { max-width: 25em; }
  .hero h1 { font-size: clamp(49px, 6.8vw, 60px); }
  .hero-description { max-width: 24em; }
  .hero-art { width: 68%; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case, .case:first-child, .case:nth-child(2) { grid-column: auto; }
  .case .case-image img { height: auto; aspect-ratio: 1.6; }
  .expertise-grid { gap: 34px; }
  .power-chain li { padding: 7px 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 31px; }
}

@media (max-width: 700px) {
  .mast-inner { min-height: 63px; }
  .brand img { width: 32px; }
  .brand-type b { font-size: 21px; }
  .brand-type small { font-size: 7px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .site-nav .nav-case { padding-inline: 10px; gap: 6px; min-height: 35px; }
  .nav-case .arrow { width: 13px; }
  .hero { display: flex; flex-direction: column; }
  .hero-art { position: relative; z-index: 0; order: 2; width: 100%; height: clamp(205px, 43vw, 296px); }
  .hero-art img { object-position: 60% 52%; }
  .hero-art::after { background: linear-gradient(180deg, var(--coal), rgba(21,22,22,.56) 11%, transparent 34%), linear-gradient(0deg, rgba(8,10,10,.4), transparent 25%); }
  .hero-inner { position: static; min-height: 0; }
  .hero-copy { width: 100%; padding: 43px 0 7px; }
  html[lang="en"] .hero-copy { width: 100%; }
  html[lang="en"] .hero h1 { font-size: clamp(36px, 8.6vw, 55px); }
  html[lang="en"] .hero-description { max-width: 34em; }
  html[lang="en"] .hero-actions { gap: 6px 17px; }
  .hero h1 { margin: 20px 0 17px; font-size: clamp(45px, 8.6vw, 59px); line-height: 1.13; }
  .hero-description { max-width: 34em; font-size: 15px; line-height: 1.75; }
  .hero-actions { gap: 24px; margin-top: 21px; }
  .hero-caption { z-index: 1; right: var(--gutter); bottom: 13px; font-size: 10px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 13px; }
  .desktop-break { display: none; }
  .section-intro { font-size: 14px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .engineering-lede { max-width: 34em; }
  .power-chain { margin-top: 22px; }
}

@media (max-width: 650px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case .case-image img { aspect-ratio: 1.64; }
  .case-copy { padding-top: 14px; }
  .case h3 { font-size: 23px; }
  .case details { margin-top: 5px; }
  .section { padding-block: 47px; }
  .footer-inner { min-height: 84px; gap: 15px; }
}

@media (max-width: 460px) {
  :root { --gutter: 20px; }
  .mast-inner { gap: 8px; }
  .site-nav { gap: 11px; }
  .site-nav a { white-space: nowrap; }
  .site-nav .nav-long { display: none; }
  .site-nav .nav-short { display: inline; }
  .site-nav .language-link { padding-left: 10px; margin-left: 0; }
  .site-nav .nav-case { padding: 0; min-height: 44px; border: 0; }
  .nav-case .arrow { display: none; }
  .brand { gap: 5px; }
  .brand img { width: 28px; }
  .brand-type b { font-size: 18px; }
  .brand-type small { font-size: 6px; }
  .footer-domain { display: none; }
  .steps { gap: 25px 19px; }
  .steps h3 { margin-top: 12px; font-size: 19px; }
  .steps p { font-size: 13px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .site-nav { gap: 8px; }
  .site-nav a { font-size: 12px; }
  .hero-actions { gap: 16px; }
  .primary-action { padding-inline: 14px; gap: 10px; }
  .text-action { gap: 8px; }
  html[lang="en"] .site-nav { gap: 6px; }
  html[lang="en"] .site-nav .language-link { padding-left: 7px; }
  html[lang="en"] .hero-actions { gap: 5px 12px; }
  html[lang="en"] .hero-actions a { font-size: 13px; }
}

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