/* XIE Motors — shared foundations. Page-specific styling lives inline. */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body { margin: 0; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: #111;
  color: #fff;
  font: 600 14px/1.2 system-ui, sans-serif;
  text-decoration: none;
  border-radius: 2px;
}

.skip-link:focus { top: 16px; }

/* Scroll-reveal, shared by every page. */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Minimal language switch primitives; each page reskins these. */
.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 5px;
  font: inherit;
  line-height: 1;
  letter-spacing: inherit;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.lang-switch button.is-active,
.lang-switch button:hover { opacity: 1; }

.lang-switch button.is-active { text-decoration: underline; text-underline-offset: 3px; }
