/* Public-site visual refresh. Admin and builder editing surfaces stay on styles.css. */
:root {
  --public-paper: #f2f5fa;
  --public-surface: #fbfcfe;
  --public-ink: #101a2d;
  --public-muted: #5d6a80;
  --public-line: rgba(16, 42, 91, 0.13);
  --public-shadow: 0 20px 56px rgba(6, 26, 77, 0.09);
  --max: 1320px;
}

html.i18n-pending body {
  visibility: hidden;
}

body:not(.admin-page) {
  color: var(--public-ink);
  background: var(--public-paper);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body:not(.admin-page)::before {
  display: none;
}

body:not(.admin-page) [data-reveal] {
  opacity: 1;
  transform: none;
}

img {
  height: auto;
}

.shell {
  width: min(calc(100% - 56px), var(--max));
}

.topbar-inner {
  min-height: 40px;
}

.scroll-progress {
  background: var(--brand-orange);
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: public-scroll-progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes public-scroll-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.topbar {
  background: #07183e;
  font-size: 12px;
}

.site-header {
  background: rgba(242, 245, 250, 0.94);
  border-bottom: 1px solid rgba(6, 26, 77, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(242, 245, 250, 0.9);
  box-shadow: 0 12px 36px rgba(6, 26, 77, 0.07);
}

.header-inner {
  min-height: 74px;
}

.brand-logo {
  width: 92px;
  height: 36px;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand-text small {
  color: #657189;
  letter-spacing: 0;
  text-transform: none;
}

.site-nav {
  gap: clamp(14px, 1.8vw, 26px);
}

.site-nav a {
  color: #556278;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a::after {
  bottom: 0;
  background: var(--brand-orange);
}

.hero {
  min-height: 0;
  max-height: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(4, 20, 59, 0.94) 0%, rgba(4, 25, 70, 0.78) 48%, rgba(5, 28, 73, 0.32) 100%),
    linear-gradient(180deg, rgba(4, 20, 59, 0.1), rgba(4, 20, 59, 0.68));
}

.hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 5vw, 80px);
  padding: 64px 0 104px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  max-width: 760px;
  font-size: 56px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.16;
  text-wrap: balance;
}

.lead {
  max-width: 620px;
  color: rgba(246, 249, 255, 0.82);
  font-size: 18px;
}

.eyebrow {
  letter-spacing: 0;
}

.button {
  min-height: 48px;
  border-radius: var(--button-radius);
  padding-inline: 24px;
  letter-spacing: 0;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary {
  color: #101623;
  background: #e0a04f;
  box-shadow: 0 14px 32px rgba(210, 130, 63, 0.24);
}

.hero-controls {
  border-radius: var(--radius);
  background: rgba(6, 26, 77, 0.46);
}

.hero-stats {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats div {
  padding: 22px 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-stats div:first-child {
  padding-left: 0;
}

.hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel {
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-panel article {
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.hero-panel h2 {
  margin-block: 7px 6px;
  font-size: 21px;
}

.capability-strip {
  margin-top: -72px;
}

.capability-grid {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--public-line);
  border-radius: var(--card-radius);
  background: rgba(251, 252, 254, 0.98);
  box-shadow: var(--public-shadow);
}

.capability-card {
  min-height: 188px;
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.capability-card + .capability-card {
  border-left: 1px solid var(--public-line);
}

.capability-card h2 {
  font-size: 20px;
}

.section {
  padding-block: 88px;
}

.section-heading,
.section-heading.align-center {
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}

.section-heading h2 {
  font-size: 42px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1.22;
  text-wrap: balance;
}

.section-heading p:last-child {
  max-width: 64ch;
  color: var(--public-muted);
}

.about-section .section-heading > .eyebrow,
.products-section > .section-heading > .eyebrow,
.projects-section > .section-heading > .eyebrow,
.news-section > .section-heading > .eyebrow,
.partners-section > .section-heading > .eyebrow {
  display: none;
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.about-grid > *,
.manufacturing-grid > *,
.contact-grid > *,
.hero-grid > * {
  min-width: 0;
}

.about-grid .section-heading {
  margin: 0;
}

.section-heading.light p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.about-visual,
.manufacturing-main {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.about-visual img,
.manufacturing-main img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-info-rail {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  inset: auto;
  margin: 16px;
  padding: 18px 20px;
  min-width: 0;
  border-radius: 6px;
  background: #102a5b;
  box-shadow: none;
  backdrop-filter: none;
}

.media-info-rail span {
  letter-spacing: 0;
}

.media-info-rail strong {
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mini-metrics {
  gap: 0;
  border-top: 1px solid var(--public-line);
}

.mini-metrics article {
  padding: 22px 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mini-metrics article:first-child {
  padding-left: 0;
}

.product-intro {
  gap: clamp(28px, 5vw, 68px);
  margin-bottom: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-intro img {
  box-shadow: var(--public-shadow);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  grid-column: auto;
}

.product-card,
.project-card,
.news-card,
.news-feature,
.news-detail,
.quote-form {
  border-color: var(--public-line);
  background: var(--public-surface);
  box-shadow: 0 14px 40px rgba(6, 26, 77, 0.07);
}

.product-card:hover,
.project-card:hover,
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(210, 130, 63, 0.42);
  box-shadow: 0 22px 48px rgba(6, 26, 77, 0.11);
}

.manufacturing-section {
  background: #071a4a;
}

.manufacturing-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.manufacturing-copy-block article {
  background: rgba(255, 255, 255, 0.045);
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
}

.project-media img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.news-section .news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.partners-section .section-heading {
  margin-bottom: 24px;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 28px;
}

.contact-copy {
  background: #071a4a;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border-color: rgba(16, 42, 91, 0.18);
  background: #ffffff;
}

.site-footer {
  background: #06163d;
}

.news-center-hero {
  padding-block: clamp(72px, 9vw, 112px);
  background:
    linear-gradient(100deg, rgba(4, 20, 59, 0.94), rgba(4, 25, 70, 0.58)),
    url("pictures/manufacturing-equipment.jpg") center 48% / cover;
}

.news-center-hero-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-center-hero h1 {
  max-width: 900px;
  font-size: 52px;
  line-height: 1.02;
  text-wrap: balance;
}

.news-center-hero p:last-child {
  max-width: 62ch;
}

.news-center-layout {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
}

.news-page:not(.news-article-mode) .news-center-layout {
  grid-template-columns: 1fr;
}

.news-page:not(.news-article-mode) .news-detail {
  display: none;
}

.news-page:not(.news-article-mode) .news-feature-link {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.news-page:not(.news-article-mode) .news-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-page.news-article-mode .news-feature {
  display: none;
}

.news-feature-link {
  grid-template-columns: 1fr;
}

.news-feature img {
  aspect-ratio: 16 / 9;
}

.news-feature div {
  padding: 28px;
}

.news-feature h2 {
  font-size: 32px;
}

.news-list-grid {
  grid-template-columns: 1fr;
}

.news-detail {
  top: 92px;
  padding: clamp(28px, 4vw, 52px);
}

.news-detail h2 {
  max-width: 18ch;
  font-size: 42px;
  line-height: 1.24;
  text-wrap: balance;
}

.news-category {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 750;
}

.news-detail > p,
.news-detail li,
.news-detail figcaption {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.78;
}

.news-detail h3 {
  margin-top: 32px;
  font-size: 24px;
}

.news-detail img {
  width: 100%;
  margin-block: 26px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .about-grid,
  .manufacturing-grid,
  .contact-grid,
  .news-center-layout,
  .news-page:not(.news-article-mode) .news-feature-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    display: none;
  }

  .hero-copy {
    max-width: 820px;
  }

  .about-grid .section-heading {
    max-width: 820px;
  }

  .about-grid {
    gap: 32px;
  }

  .manufacturing-copy-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-detail {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .hero {
    max-height: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 76px 112px;
  }

  .hero-panel {
    display: none;
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-card:nth-child(3) {
    border-left: 0;
  }

  .capability-card:nth-child(n + 3) {
    border-top: 1px solid var(--public-line);
  }

  .news-center-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .news-header-inner {
    flex-wrap: nowrap;
  }

  .news-header-inner .news-page-nav {
    position: fixed;
    top: 86px;
    right: 16px;
    left: 16px;
    z-index: 40;
    display: grid;
    width: auto;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--public-line);
    background: rgba(251, 252, 254, 0.98);
    box-shadow: var(--public-shadow);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
  }

  .news-header-inner .news-page-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .news-header-inner .news-page-nav a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--public-line);
  }

  .news-header-inner .nav-toggle {
    flex: 0 0 44px;
    margin-left: auto;
  }

  .news-page.news-article-mode .news-center-layout > div:first-child {
    display: none;
  }

  .news-detail {
    position: static;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-block: 8px;
  }

  .topbar-hotline {
    gap: 4px;
    font-size: 11px;
  }

  .section {
    padding-block: 56px;
  }

  .section-heading h2,
  .product-feature-copy h3 {
    font-size: 30px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .manufacturing-copy-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .shell {
    width: min(calc(100% - 32px), var(--max));
  }

  .news-header-inner .brand-text {
    display: none;
  }

  .builder-hero,
  .builder-hero h1,
  .builder-hero .lead {
    color: var(--builder-block-mobile-color, var(--builder-block-color, #ffffff));
  }

  .hero-grid {
    padding-block: 44px 72px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
  }

  .hero-stats div,
  .hero-stats div:first-child {
    padding: 14px 8px;
  }

  .hero-stats div + div {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-stats dt {
    font-size: 24px;
    white-space: nowrap;
  }

  .hero-stats dt span + span {
    font-size: 14px;
  }

  .hero-stats dd {
    font-size: 12px;
    margin: 6px 0 0;
  }

  .capability-strip {
    margin-top: -40px;
  }

  .capability-grid,
  .product-grid,
  .project-grid,
  .news-section .news-grid,
  .news-page:not(.news-article-mode) .news-list-grid,
  .news-page:not(.news-article-mode) .news-feature-link {
    grid-template-columns: 1fr;
  }

  .capability-card + .capability-card,
  .capability-card:nth-child(3) {
    border-top: 1px solid var(--public-line);
    border-left: 0;
  }

  .capability-card {
    min-height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .media-info-rail {
    inset: auto;
    margin: 12px;
    padding: 14px;
  }

  .about-visual img,
  .manufacturing-main img {
    border-radius: 8px;
    min-height: 320px;
  }

  .news-center-hero h1,
  .news-detail h2 {
    font-size: 32px;
  }

  .news-center-section {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transform: none;
  }

  .scroll-progress {
    animation: none;
  }
}
