:root {
  color-scheme: light;
  --ink: #0c1017;
  --soft-ink: #4c5561;
  --paper: #f8f9f9;
  --surface: #f0f2f3;
  --surface-raised: #fff;
  --surface-dark: #0b0e14;
  --surface-dark-raised: #131820;
  --on-dark: #f5f7fa;
  --muted-on-dark: #aeb9c6;
  --mist: var(--surface);
  --blue: #0066ff;
  --blue-hover: #0056d6;
  --blue-ink: #0053c9;
  --cyan: #00c8d2;
  --blue-tint: color-mix(in srgb, var(--blue) 8%, white);
  --cyan-tint: color-mix(in srgb, var(--cyan) 12%, white);
  --line: #d7dce0;
  --line-dark: #2a333e;
  --radius: 18px;
  --radius-small: 10px;
  --shadow-raised: 0 14px 34px #0d152410;
  --space-section: clamp(72px, 8vw, 124px);
  --nav-height: 70px;
  --page-gutter: clamp(24px, 4.6vw, 80px);
  --page-width: 1320px;
  --font-h1: clamp(44px, 6.1vw, 96px);
  --font-h2: clamp(34px, 4.75vw, 72px);
  --font-h3: clamp(21px, 2.05vw, 32px);
  --font-lead: clamp(16px, 1.4vw, 20px);
  --duration-quick: 190ms;
  --duration-enter: 680ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, summary { cursor: pointer; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 740; text-wrap: balance; }
h1 { font-size: var(--font-h1); line-height: 1.09; letter-spacing: -.055em; }
h2 { font-size: var(--font-h2); line-height: 1.12; letter-spacing: -.05em; }
h3 { font-size: var(--font-h3); line-height: 1.24; letter-spacing: -.035em; }
.container, .header-inner { width: min(calc(100% - 2 * var(--page-gutter)), var(--page-width)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section-intro { margin-bottom: clamp(30px, 4.2vw, 60px); }
.section-intro.center { text-align: center; }
.section-intro.center p { margin-inline: auto; }
.section-intro p, .lead { margin-top: 20px; max-width: 46rem; color: var(--soft-ink); font-size: var(--font-lead); text-wrap: pretty; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--blue-ink); font-size: 11px; line-height: 1.45; font-weight: 750; letter-spacing: .15em; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 15px;
  font-weight: 680;
  line-height: 1.4;
  text-align: center;
  transition: background-color var(--duration-quick), border-color var(--duration-quick), color var(--duration-quick), transform var(--duration-quick) var(--ease-out);
}
.button:active { transform: scale(.98); }
.button .icon, .nav-cta .icon { transition: transform var(--duration-quick) var(--ease-out); }
.button:is(:hover, :focus-visible) .icon, .nav-cta:is(:hover, :focus-visible) .icon { transform: translateX(3px); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-hover); color: white; }
.button-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--surface-raised); border-color: #a1aab4; }
.button-light { background: white; color: var(--blue-ink); }
.button-light:hover { background: var(--blue-tint); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 60;
  background: #14171f;
  border-bottom: 1px solid #ffffff19;
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; min-height: calc(var(--nav-height) - 1px); gap: 20px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; flex-shrink: 0; }
.brand-logo { width: auto; height: 35px; }
.desktop-nav { display: flex; align-items: center; margin-left: auto; gap: clamp(24px, 3.5vw, 52px); }
.desktop-nav > a, .desktop-nav .cases-nav > summary, .header-cta { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-on-dark); font-size: 14px; font-weight: 650; transition: color var(--duration-quick); }
.desktop-nav > a:hover, .desktop-nav > a.active, .desktop-nav .cases-nav:is(:hover, [open]) > summary, .header-cta:hover { color: #fff; }
.desktop-nav > a.active::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; border-radius: 10px; background: var(--cyan); content: ""; }
.cases-nav { position: relative; min-width: 0; }
.cases-nav > summary { display: flex; align-items: center; gap: 7px; min-height: 44px; list-style: none; }
.cases-nav > summary::-webkit-details-marker { display: none; }
.cases-chevron { transition: transform var(--duration-quick) var(--ease-out); }
.cases-nav[open] > summary .cases-chevron { transform: rotate(180deg); }
.cases-panel { padding: 6px; border: 1px solid var(--line-dark); border-radius: var(--radius-small); background: #171d27; }
.desktop-nav .cases-panel { position: absolute; inset: calc(100% + 5px) auto auto -14px; width: 164px; box-shadow: 0 14px 28px #080a1360; }
.cases-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 6px; background: #222c39; color: var(--on-dark); font-size: 13px; font-weight: 700; }
.cases-entry svg { color: var(--muted-on-dark); }
.nav-cta, .header-cta { white-space: nowrap; }
.nav-cta { gap: 7px; }
.nav-cta .icon { width: 15px; height: 15px; }
.header-cta, .menu-toggle, .mobile-nav { display: none; }
.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 110; transform: translateY(-160%); border-radius: 9px; padding: 12px 18px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.nojs-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 10px var(--page-gutter); border-bottom: 1px solid var(--line); color: var(--blue); }
.nojs-nav a { display: inline-flex; align-items: center; min-height: 44px; }

.final-cta {
  padding-block: clamp(48px, 7vw, 100px);
  background: var(--surface);
  color: var(--on-dark);
}
.final-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(28px, 5vw, 68px);
  border-radius: var(--radius);
  background:
    linear-gradient(95deg, var(--surface-dark) 35%, #0b0e14db 66%, #0b0e1460),
    right 53% / 70% auto no-repeat url("../images/hero-metal-small.jpg"),
    var(--surface-dark);
}
.final-cta .eyebrow { color: var(--cyan); }
.final-cta h2 { max-width: 17em; color: var(--on-dark); font-size: clamp(30px, 4.1vw, 57px); }
.final-cta h2 span { display: inline-block; white-space: nowrap; }
.final-cta p { margin-top: 16px; color: var(--muted-on-dark); }
.final-cta .button-light { flex-shrink: 0; background: var(--on-dark); color: var(--ink); }
.final-cta .button-light:hover { background: white; color: var(--blue-ink); }

.site-footer { padding: clamp(42px, 6vw, 78px) 0 22px; background: var(--surface-dark); color: var(--on-dark); font-size: 14px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px 54px; padding-bottom: 32px; }
.footer-top p { margin-top: 9px; }
.footer-top p:not(.footer-contact) { margin: 13px 0 15px; color: var(--on-dark); font-size: clamp(17px, 1.55vw, 22px); font-weight: 620; letter-spacing: -.02em; }
.footer-top .footer-contact { color: var(--muted-on-dark); font-size: 13px; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 25px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }
.site-footer a:hover { color: white; text-decoration: underline; text-underline-offset: .27em; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-top: 20px; color: var(--muted-on-dark); }
.footer-bottom small { font-size: 12px; }
.footer-bottom .icp { text-decoration: underline; text-underline-offset: .2em; }

.sticky-cta { display: none; }
.no-scroll { overflow: hidden; }
.video-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 18px;
  overflow: clip;
  border: 0;
  background: transparent;
}
.video-modal[open] { display: grid; place-items: center; }
.video-modal::backdrop { background: transparent; }
.video-shade { position: absolute; inset: 0; background: rgb(8 11 15 / .84); backdrop-filter: blur(8px); }
.modal-panel { position: relative; width: min(100%, 1100px); max-height: calc(100dvh - 36px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--surface-dark-raised); box-shadow: 0 24px 70px #0008; color: var(--on-dark); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px 9px 20px; }
.modal-close { width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: var(--radius-small); background: transparent; color: var(--on-dark); font-size: 26px; line-height: 1; transition: background-color var(--duration-quick); }
.modal-close:hover { background: var(--line-dark); }
.modal-panel video { width: 100%; max-height: calc(100dvh - 100px); background: #060813; }
.modal-status { position: absolute; z-index: 1; inset: auto 12px 60px; padding: 4px 10px; border-radius: 6px; background: rgb(10 13 24 / .85); color: white; font-size: 13px; text-align: center; pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  :root { --page-gutter: 32px; }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 65px;
    --sticky-cta-clearance: max(78px, calc(66px + env(safe-area-inset-bottom)));
  }
  .header-inner { gap: 5px; }
  .brand-logo { height: 30px; }
  .desktop-nav { display: none; }
  .header-cta { display: inline-flex; margin-left: auto; padding-inline: 12px; font-size: 12px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--on-dark); }
  .mobile-nav { position: absolute; inset: 100% 0 auto; display: grid; max-height: calc(100dvh - var(--nav-height)); overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--page-gutter) 15px; background: var(--surface-dark-raised); box-shadow: 0 14px 28px #080a1360; }
  .mobile-nav > a, .mobile-nav .cases-nav { min-height: 48px; border-bottom: 1px solid var(--line-dark); }
  .mobile-nav > a { padding: 10px 0; }
  .mobile-nav .cases-nav > summary { justify-content: space-between; min-height: 47px; padding: 0 4px 0 0; }
  .mobile-nav .cases-panel { margin-bottom: 10px; }
  .mobile-nav a[aria-current="page"] { color: var(--cyan); }
  .final-cta .container, .footer-top { flex-direction: column; align-items: flex-start; }
  .final-cta .container { gap: 24px; background-size: auto, cover; }
  .final-cta h2 { font-size: clamp(25px, 6.7vw, 41px); }
  .footer-links { gap: 0 17px; }
  .sticky-cta { display: block; position: fixed; z-index: 55; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); left: 16px; }
  .sticky-cta .button { width: 100%; box-shadow: 0 8px 22px #0f172849; }
  html:has(body.has-sticky-cta) { scroll-padding-block-end: var(--sticky-cta-clearance); }
  body.has-sticky-cta { padding-bottom: var(--sticky-cta-clearance); background: var(--surface-dark); }
}

@media (max-width: 600px) {
  :root {
    --page-gutter: 19px;
    --radius: 14px;
    --font-h1: clamp(36px, 9.6vw, 57px);
    --font-h2: clamp(30px, 8.2vw, 48px);
    --space-section: 62px;
  }
  .eyebrow { margin-bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .button:active,
  .button:is(:hover, :focus-visible) .icon,
  .nav-cta:is(:hover, :focus-visible) .icon { transform: none; }
}
