/* ==========================================================================
   Sureton Automation — design system
   Light, editorial, industrial. One accent blue, generous whitespace,
   large type, thin rules. No decoration for decoration's sake.
   ========================================================================== */

/*
   Palette sampled from the corporate logo so the division reads as the same
   company as the parent: blue #1b4691, orange #e09059, near-black #172028.
*/
:root {
  --ink: #172028;
  --ink-soft: #2a3542;
  --muted: #5d6d7e;
  --muted-2: #8695a4;
  --line: #e4e9ef;
  --line-strong: #cfd8e2;
  --bg: #ffffff;
  --soft: #f6f8fb;
  --brand: #1b4691;
  --brand-dark: #143663;
  --brand-light: #edf1f8;
  --accent: #e09059;
  --accent-dark: #c88353;
  --accent-ink: #a8622c;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(23, 32, 40, 0.06);
  --shadow-sm: 0 6px 18px rgba(23, 32, 40, 0.06);
  --shadow: 0 18px 44px rgba(23, 32, 40, 0.09);
  --shadow-lg: 0 34px 80px rgba(23, 32, 40, 0.16);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 8vw, 116px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Real header height, kept in sync by main.js. The fallback keeps the
     layout correct even if JavaScript never runs. */
  --header-h: 116px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor jumps must clear the pinned header. */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.6rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.5rem); }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 0.98rem; }

::selection { background: var(--brand); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------------ atoms */

.eyebrow {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.9em;
}
.eyebrow-light { color: var(--accent); }

.lead {
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 68ch;
}
.lead-light { color: rgba(255, 255, 255, 0.76); }

.on-dark { color: #fff; }

.fine-print { font-size: 0.8rem; color: var(--muted-2); margin-top: 14px; }

.link-arrow {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.link-arrow:hover { transform: translateX(4px); color: var(--brand-dark); }
.link-arrow-light { color: var(--accent); }

.dot { color: var(--line-strong); }

/* ----------------------------------------------------------------- button */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-primary { --btn-bg: var(--brand); }
.btn-primary:hover { --btn-bg: var(--brand-dark); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: #f0f4f9; }

.btn-ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.09); }

.btn-outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); --btn-bg: var(--ink); --btn-fg: #fff; }

.btn-sm { padding: 10px 18px; font-size: 0.84rem; }
.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ----------------------------------------------------------------- header */

/*
   The header (top bar + navigation) is pinned to the top of the viewport and
   never changes while the page scrolls — no shrinking, no shadow that fades
   in, no colour shift. The matching offset for the page below lives on
   `main` rather than `body` so the admin pages (which have no site header)
   keep their natural top spacing.
*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 6px 24px rgba(23, 32, 40, 0.07);
}
.site-header ~ main { padding-top: var(--header-h); }

/* Skip link: off-screen until focused, then it drops over the pinned header. */
.skip-link {
  position: absolute;
  left: 18px;
  top: -60px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; outline: 2px solid #fff; outline-offset: -4px; }

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar-item { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; }
.topbar-right { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar-sister { color: var(--accent); }

.nav {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

/*
   Brand lockup: the corporate logo file is used as-is (same artwork as
   sureton.cn) with "Automation" set as the division descriptor, so the parent
   brand and the division stay visually tied together.
*/
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-logo { height: 31px; width: auto; display: block; }
.brand-divider { width: 1px; height: 27px; background: var(--line-strong); flex: none; }
.brand-division {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  padding-top: 2px;
}
.brand-light .brand-divider { background: rgba(255, 255, 255, 0.24); }
.brand-light .brand-division { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links ul { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width 0.28s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--ink); font-weight: 600; }
.nav-cta::after { display: none; }
/* `.nav-links a` is more specific than `.btn`, so the CTA inside the nav has to
   restate its own colour and padding or it renders as plain dark link text on
   top of the pill. */
.nav-links .nav-cta {
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 999px;
}
.nav-links .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); transition: 0.25s var(--ease); }

/* ------------------------------------------------------------------- hero */

.hero { position: relative; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6, 14, 24, 0.94) 0%, rgba(6, 14, 24, 0.78) 42%, rgba(6, 14, 24, 0.32) 100%),
    linear-gradient(180deg, rgba(6, 14, 24, 0.5) 0%, rgba(6, 14, 24, 0) 35%);
}
.hero-inner {
  position: relative;
  padding-top: clamp(84px, 12vw, 150px);
  padding-bottom: clamp(56px, 7vw, 88px);
  max-width: 900px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 62ch;
  margin-top: 4px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-stats { position: relative; padding-bottom: clamp(44px, 6vw, 72px); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: rgba(10, 20, 32, 0.55); padding: 24px 26px; backdrop-filter: blur(6px); }
.stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.stat span { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); margin-top: 8px; }

.stat-strip-light { background: transparent; border: 1px solid var(--line); }
.stat-strip-light .stat { background: var(--soft); backdrop-filter: none; }
.stat-strip-light .stat strong { color: var(--ink); }
.stat-strip-light .stat span { color: var(--muted); }

/* ---------------------------------------------------------------- section */

.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }
.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head-split > div { max-width: 660px; }
.section-head h2 + .lead { margin-top: 6px; }

/* -------------------------------------------------------------- page hero */

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(52px, 7vw, 96px);
}
.page-hero-tight { padding-block: 26px; background: #fff; border-bottom: 0; }
.page-hero-tall { padding-block: clamp(80px, 12vw, 150px); }
.page-hero h1 { max-width: 22ch; }
.page-hero-image {
  position: relative;
  background: linear-gradient(100deg, rgba(6, 14, 24, 0.92), rgba(6, 14, 24, 0.6)), var(--hero-image) center/cover no-repeat;
  border-bottom: 0;
  color: #fff;
}
.page-hero-image h1 { color: #fff; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb em { font-style: normal; color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------ group story */

.group-panels {
  display: grid;
  grid-template-columns: 1fr 92px 1fr;
  align-items: stretch;
  gap: 0;
}
.group-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}
.group-panel-primary {
  border-color: rgba(27, 70, 145, 0.35);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}
.group-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.group-panel h3 { font-size: 1.42rem; margin-bottom: 4px; }
.group-role { font-size: 0.86rem; color: var(--brand); font-weight: 600; margin-bottom: 20px; }
.group-panel .tick-list { margin-bottom: 26px; }
.group-panel .link-arrow { margin-top: auto; }

.group-join { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.join-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 300;
}
.join-line { flex: 1; width: 1px; background: var(--line-strong); }

.group-result {
  margin-top: 30px;
  padding: 22px 28px;
  border-left: 3px solid var(--brand);
  background: var(--soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}
.group-result strong { color: var(--ink); margin-right: 6px; }

/* ------------------------------------------------------------------ lists */

.tick-list { display: grid; gap: 11px; }
.tick-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.tick-list-sm li { font-size: 0.88rem; }

.plain-list { display: grid; gap: 12px; }
.plain-list li { position: relative; padding-left: 18px; font-size: 0.92rem; color: var(--muted); }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.column-card-accent .plain-list li::before { background: #fff; }

.feature-list { display: grid; gap: 13px; margin-top: 24px; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ------------------------------------------------------------- the stack */

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stack-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brand);
  display: block;
  margin-bottom: 20px;
}
.stack-card h3 { margin-bottom: 12px; }
.stack-card p { font-size: 0.94rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ chips */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip-row-spaced { margin: 34px 0 0; }
.chip {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  transition: 0.22s var(--ease);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ grids */

.card-grid { display: grid; gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.grid-2-start { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------------------------------------------------------------- product */

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fbfcfe 0%, #f1f5f9 100%);
  display: grid;
  place-items: center;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.product-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.product-series {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 10px;
}
.product-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.product-body p { font-size: 0.9rem; color: var(--muted); margin: 0 0 18px; }
.product-body .link-arrow { margin-top: auto; }
.product-card-compact .product-media { aspect-ratio: 1 / 1; padding: 18px; }
.product-card-compact .product-body { padding: 18px 20px 22px; }
.product-card-compact h3 { font-size: 0.98rem; }

.product-rows { display: grid; gap: 18px; }
.product-row {
  display: grid;
  grid-template-columns: 232px 1fr 190px;
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: 0.28s var(--ease);
}
.product-row:hover { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.product-row-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fbfcfe, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 18px;
}
.product-row-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-row-body h3 { font-size: 1.16rem; margin: 8px 0 6px; }
.product-row-body h3 a:hover { color: var(--brand); }
.product-row-body > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.product-row-side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.filter-note {
  padding: 14px 20px;
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ------------------------------------------- solution layers (catalogue/home) */

.layer-index {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.layer-block { padding-top: 56px; border-top: 1px solid var(--line); }
.layer-block:first-of-type { border-top: 0; padding-top: 0; }

.layer-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}
.layer-head-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0 0 8px; }
.layer-head-text p { font-size: 0.94rem; color: var(--muted); max-width: 78ch; margin: 0; }
.layer-count {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
}

.home-layer + .home-layer {
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.home-layer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.home-layer-head h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 10px 0 8px; }
.home-layer-head p { font-size: 0.94rem; color: var(--muted); max-width: 76ch; margin: 0; }

@media (max-width: 760px) {
  .layer-head { grid-template-columns: 1fr; gap: 12px; }
  .layer-count { justify-self: start; }
}
.empty-state { padding: 60px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.search-form { display: flex; gap: 10px; }
.search-form input {
  min-width: 260px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}
.search-form input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }

/* --------------------------------------------------------- product detail */

.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.product-detail-media {
  background: linear-gradient(180deg, #fbfcfe, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  gap: 22px;
  place-items: center;
}
.product-detail-media img { max-height: 460px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-detail-thumb { max-height: 240px; }
.product-detail-body h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 10px; }
.product-tagline { font-size: 1.1rem; color: var(--brand); font-weight: 500; margin-bottom: 18px; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 26px; border-top: 1px solid var(--line); }
.product-meta span { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 5px; }
.product-meta strong { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.product-meta a { color: var(--brand); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 0.92rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left;
  padding: 13px 20px 13px 0;
  font-weight: 500;
  color: var(--muted);
  width: 45%;
  vertical-align: top;
}
.spec-table td { padding: 13px 0; color: var(--ink); font-weight: 500; }

.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------- services */

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.06rem; margin-bottom: 10px; }
.service-card p { font-size: 0.91rem; color: var(--muted); margin: 0; }

.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-index { font-family: var(--font-mono); font-size: 0.9rem; color: var(--brand); }
.service-row-body h3 { font-size: 1.22rem; margin-bottom: 8px; }
.service-summary { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 8px; }
.service-detail { font-size: 0.92rem; color: var(--muted); max-width: 80ch; }

.model-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 26px;
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.model-step { text-align: center; flex: 1; min-width: 200px; }
.model-step span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 8px;
}
.model-step p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.model-arrow { color: var(--line-strong); font-size: 1.3rem; }

/* ------------------------------------------------------------ solutions */

.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.solution-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
}
.solution-media { position: absolute; inset: 0; }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.solution-card:hover .solution-media img { transform: scale(1.05); }
.solution-overlay {
  position: relative;
  height: 100%;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 14, 24, 0.1) 0%, rgba(6, 14, 24, 0.55) 45%, rgba(6, 14, 24, 0.95) 100%);
}
.solution-stat { font-size: 0.76rem; color: var(--accent); font-weight: 600; letter-spacing: 0.03em; margin-bottom: 12px; }
.solution-stat em { font-style: normal; font-weight: 400; color: rgba(255, 255, 255, 0.72); display: block; margin-top: 3px; }
.solution-overlay h3 { color: #fff; font-size: 1.28rem; margin-bottom: 6px; }
.solution-overlay p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 16px; }

.solution-list { display: grid; gap: clamp(48px, 6vw, 84px); }
.industry-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.industry-row.is-reversed .industry-row-media { order: 2; }
.industry-row-media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.industry-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.industry-row-media:hover img { transform: scale(1.04); }
.industry-row-stat {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(8, 17, 28, 0.86);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  max-width: 76%;
}
.industry-row-stat strong { display: block; font-size: 1.35rem; color: var(--accent); line-height: 1.1; }
.industry-row-stat em { font-style: normal; font-size: 0.78rem; color: rgba(255, 255, 255, 0.74); }
.industry-row-body h2 { margin-bottom: 14px; }
.industry-row-body h2 a:hover { color: var(--brand); }
.industry-row-body > p { color: var(--muted); margin-bottom: 20px; }
.industry-row-body .tick-list { margin-bottom: 26px; }

.column-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.column-card h3 { font-size: 1.05rem; margin-bottom: 18px; }
.column-card-accent { background: var(--ink); border-color: var(--ink); }
.column-card-accent h3 { color: #fff; }
.column-card-accent .plain-list li { color: rgba(255, 255, 255, 0.78); }

.machine-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: 0.28s var(--ease);
}
.machine-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.machine-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.machine-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- partner */

.partner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.fact-list { display: grid; gap: 0; margin: 30px 0; border-top: 1px solid var(--line); }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.fact-list span { color: var(--muted-2); }
.fact-list strong { color: var(--ink); font-weight: 600; text-align: right; }
.partner-note { font-size: 0.92rem; color: var(--muted); border-left: 3px solid var(--brand); padding-left: 18px; }

/* ------------------------------------------------- two-way cooperation / notice */

/* Editorial "nothing here yet" panel (the dashed .empty-state above is the
   small centred box used for empty search results). */
.notice-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
  max-width: 780px;
}
.notice-panel h2 { margin-bottom: 14px; }
.notice-panel p { color: var(--muted); max-width: 62ch; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* two-way cooperation blocks on the About page */
.partner-role { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.partner-role-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.partner-role h3 { font-size: 1.04rem; margin-bottom: 12px; }
.partner-role p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.partner-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.partner-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------------------------------------------------------- certificates */

.cert-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.cert strong { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 5px; }
.cert span { font-size: 0.78rem; color: var(--muted-2); }

.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cert-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.cert-tile strong { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 4px; }
.cert-tile span { font-size: 0.78rem; color: var(--muted-2); }

.cap-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.cap-card strong { display: block; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.cap-card span { font-size: 0.84rem; color: var(--muted); }

.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; }
.value-card h3 { color: var(--brand); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.value-card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }

/* -------------------------------------------------------------- timeline */

.timeline { display: grid; gap: 0; border-left: 1px solid rgba(255, 255, 255, 0.16); margin-left: 12px; }
.timeline-item { position: relative; padding: 0 0 36px 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-group::before { background: #fff; }
.timeline-year { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); margin-bottom: 8px; }
.timeline-track {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}
.timeline-body h3 { font-size: 1.1rem; margin-bottom: 7px; }
.timeline-body p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.66); margin: 0; max-width: 72ch; }

/* ------------------------------------------------------------ comparison */

.compare-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare-head { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); }
.compare-col { padding: 26px 30px; }
.compare-col h3 { color: #fff; font-size: 1.12rem; margin-bottom: 4px; }
.compare-col span { font-size: 0.78rem; color: var(--accent); font-family: var(--font-mono); }
.compare-col-b { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.compare-cell { padding: 22px 30px; }
.compare-cell + .compare-cell { border-left: 1px solid var(--line); }
.compare-cell strong {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
}
.compare-cell p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.compare-cell-link { background: var(--soft); }
.structure-note { margin-top: 24px; font-size: 0.92rem; color: var(--muted); max-width: 84ch; }

/* ------------------------------------------------------------------ news */

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: 0.3s var(--ease);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.news-meta em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.news-meta time { font-size: 0.78rem; color: var(--muted-2); font-family: var(--font-mono); }
.news-card h3 { font-size: 1.06rem; margin-bottom: 10px; }
.news-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.news-card .link-arrow { margin-top: auto; }

.article-list { display: grid; gap: 0; max-width: 880px; }
.article-card { padding: 44px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.article-card:first-child { padding-top: 0; }
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.article-meta time { font-size: 0.8rem; color: var(--muted-2); font-family: var(--font-mono); }
.article-source { font-size: 0.8rem; color: var(--muted-2); }
.article-card h2 { font-size: clamp(1.3rem, 2.2vw, 1.72rem); }
.article-card p { color: var(--muted); font-size: 0.98rem; }

/* Post bodies are written with a small markup in the admin, so the rendered
   result needs real typography for headings, lists, quotes and links. */
.article-body { margin-top: 14px; display: grid; gap: 14px; }
.article-body h3 { font-size: 1.14rem; color: var(--ink); margin-top: 10px; }
.article-body h4 { font-size: 1rem; color: var(--ink); margin-top: 10px; }
.article-body ul,
.article-body ol { padding-left: 22px; color: var(--muted); font-size: 0.98rem; display: grid; gap: 7px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-dark); }
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
}
.article-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 2px 0 2px 16px;
  color: var(--ink-soft);
  font-style: italic;
}
.article-link { margin-top: 20px; }

/* News photos — optional, so every rule here must degrade cleanly when absent. */
.article-media { margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-media { margin: -28px -26px 20px; overflow: hidden; border-bottom: 1px solid var(--line); }
.news-card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: 0.4s var(--ease); }
.news-card:hover .news-card-media img { transform: scale(1.03); }

/* --------------------------------------------------------------- contact */

.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-form-wrap h2 { font-size: 1.5rem; }
.enquiry-form { margin-top: 26px; display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 0.84rem; font-weight: 500; color: var(--ink); }
.field > span em { color: var(--brand); font-style: normal; }
.field > span small { display: block; font-weight: 400; color: var(--muted-2); font-size: 0.76rem; margin-top: 3px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
  transition: 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(27, 70, 145, 0.12);
}
.file-field input[type="file"] { padding: 12px; background: var(--soft); font-size: 0.86rem; }
.form-footer { display: grid; gap: 14px; justify-items: start; }
.form-note { font-size: 0.8rem; color: var(--muted-2); max-width: 60ch; margin: 0; }

/* Privacy confirmation on the enquiry form */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-row input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--brand); }
.consent-row a { color: var(--brand); text-decoration: underline; }

/* Long-form legal / policy copy */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: 1.22rem;
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { margin-bottom: 1em; }
.prose ul { display: grid; gap: 10px; margin: 0 0 1.2em; padding-left: 20px; list-style: disc; }
.prose li { line-height: 1.6; }
.prose a { color: var(--brand); text-decoration: underline; }

.alert { padding: 20px 24px; border-radius: var(--radius); margin-bottom: 26px; font-size: 0.92rem; }
.alert strong { display: block; margin-bottom: 6px; color: var(--ink); }
.alert-success { background: #eefaf2; border: 1px solid #bfe8cd; }
.alert-success a { color: var(--brand); font-weight: 600; }
.alert-error { background: #fff1f0; border: 1px solid #f5c2bd; }

/* Sticky panels must clear the pinned header, hence the --header-h offset. */
.contact-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 18px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { font-size: 0.9rem; }
.contact-list span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.contact-list strong { font-weight: 500; color: var(--ink); line-height: 1.5; display: block; }
.contact-list a { color: var(--brand); font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.contact-map { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); margin: 18px 0 14px; }
.contact-map iframe { width: 100%; height: 200px; border: 0; display: block; }
.contact-card-partner p { font-size: 0.88rem; color: var(--muted); }
.contact-card-sister { background: var(--ink); border-color: var(--ink); }
.contact-card-sister h3 { color: #fff; }
.contact-card-sister p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 18px; }

/* -------------------------------------------------------------- cta band */

.cta-band {
  background: linear-gradient(115deg, #1b4691 0%, #143663 55%, #172028 100%);
  color: #fff;
  padding-block: clamp(60px, 7vw, 96px);
  margin-top: var(--section-y);
}
.cta-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-sub { color: rgba(255, 255, 255, 0.78); font-size: 1rem; max-width: 56ch; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.66); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.66); padding-top: clamp(56px, 6vw, 84px); }
/* The footer brand column is narrow, so the lockup is allowed to break after
   the logo instead of running into the next column. */
.footer-brand .brand { flex-wrap: wrap; row-gap: 12px; }
.footer-brand .brand-divider { display: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 54px;
}
.footer-brand p { font-size: 0.88rem; margin-top: 20px; max-width: 34ch; }
.footer-sister {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.48) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  max-width: 40ch;
}
.footer-sister span { color: rgba(255, 255, 255, 0.72); }
.footer-sister a { color: var(--accent); }
.footer-col h4 {
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col li { font-size: 0.85rem; line-height: 1.55; }
.footer-col a:hover { color: #fff; }
.fc-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); }
.fc-social { display: flex; gap: 14px; }
.fc-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.fc-social a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}
/* Hover fills the circle with each platform's own brand colour so the icon is
   recognisable at a glance, while the resting state stays quiet and does not
   compete with the contact details above it. nth-child follows the markup
   order in views/partials/footer.ejs: LinkedIn, X, YouTube. */
.fc-social a:nth-child(1):hover { background: #0a66c2; }
.fc-social a:nth-child(2):hover { background: #000; }
.fc-social a:nth-child(3):hover { background: #ff0000; }
.fc-social-icon { display: block; width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------ motion */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------- back to top button */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(23, 32, 40, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 26px rgba(23, 32, 40, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), visibility 0.25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.to-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.to-top svg { width: 20px; height: 20px; }

@media (max-width: 620px) {
  .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
  .to-top svg { width: 18px; height: 18px; }
}

/* -------------------------------------------------------------- downloads */

.download-summary { margin-top: 0; }

.download-list { display: grid; gap: 16px; }
.download-row {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: 0.28s var(--ease);
}
.download-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.download-row-compact { grid-template-columns: 1fr 240px; }
.download-row-wide { grid-template-columns: 1fr 260px; }
.download-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fbfcfe, #f1f5f9);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 16px;
}
.download-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.download-body h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.download-body p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.download-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .nav-links ul { gap: 18px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-aside { position: static; }
}

/*
   The navigation only collapses to the hamburger once the row genuinely stops
   fitting. With the tightened gaps the row needs ~1052px and the shell offers
   1144px at the 1240px container, so 1200px is the widest viewport that still
   needs the fallback. Raising it from 900px used to leave 901-1080px hard
   overflowing (1080 overflowed by 111px). The layout rules below stay at 900px
   on purpose: only the navigation behaviour changes here, never the page grids.
*/
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 24px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 0; white-space: normal; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 18px; align-self: flex-start; }
  .nav { position: relative; }
}

@media (max-width: 900px) {
  .grid-2, .grid-3, .partner, .product-detail, .contact-layout, .cta-inner, .stack-grid { grid-template-columns: 1fr; }
  .grid-2 { gap: 34px; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .group-panels { grid-template-columns: 1fr; }
  .group-join { flex-direction: row; padding: 18px 0; }
  .join-line { flex: 1; height: 1px; width: auto; }
  .industry-row { grid-template-columns: 1fr; }
  .industry-row.is-reversed .industry-row-media { order: 0; }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-col-b { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .compare-cell + .compare-cell { border-left: 0; border-top: 1px solid var(--line); }
  .product-row { grid-template-columns: 1fr; }
  .product-row-media { max-width: 300px; }
  .download-row { grid-template-columns: 1fr; }
  .download-row-compact { grid-template-columns: 1fr; }
  .download-media { max-width: 260px; }
  .section-head-split { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-meta { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 12px; }
  .card-grid-4, .solution-grid, .cert-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .search-form { width: 100%; }
  .search-form input { min-width: 0; flex: 1; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .cta-band { margin-top: 0; }
}


/* ==========================================================================
   Hover motion layer — 悬停动效
   --------------------------------------------------------------------------
   设计原则：只加"动"，不加"料"。
   · 全部为 transform / color / background / box-shadow / opacity 与 absolute
     伪元素，不改变任何元素的静态盒模型 —— 骨架路径与 class 指纹不受影响。
   · 光泽扫过只挂在「本就已声明 overflow:hidden」的容器上（product-card /
     solution-card / news-card-media），不新增会改变包含块的定位属性。
   · 收在 (hover: hover) 内：触屏点按不会留下粘连的悬停态。
   · 文件末尾的 prefers-reduced-motion 会统一关掉这些过渡。
   ========================================================================== */

@media (hover: hover) {

  /* 1 ── 卡片内产品图轻微推近，暗示"可进入" ------------------------------ */
  .product-media img,
  .product-row-media img,
  .download-media img { transition: transform 0.55s var(--ease); }

  .product-card:hover .product-media img,
  .product-row:hover .product-row-media img,
  .download-row:hover .download-media img { transform: scale(1.055); }

  /* 2 ── 卡片标题转为品牌蓝 ---------------------------------------------- */
  .product-body h3,
  .news-card h3,
  .stack-card h3,
  .machine-card h3,
  .download-body h3,
  .product-row-body h3 { transition: color 0.25s var(--ease); }

  .product-card:hover .product-body h3,
  .news-card:hover h3,
  .stack-card:hover h3,
  .machine-card:hover h3,
  .download-row:hover .download-body h3,
  .product-row:hover .product-row-body h3 { color: var(--brand); }

  /* 3 ── 整卡悬停时，卡内箭头同步推进（整卡可点的暗示） ------------------- */
  .product-card:hover .link-arrow,
  .news-card:hover .link-arrow,
  .stack-card:hover .link-arrow,
  .machine-card:hover .link-arrow { transform: translateX(6px); }

  /* 3b ── 修复：入场动画吃掉了卡片的浮起 ---------------------------------
     main.js 在运行时给卡片补上 .reveal / .is-visible，而
     .reveal.is-visible { transform: none } 与 .product-card:hover 特异性相同
     (0,2,0) 却位置更靠后（motion 区），于是入场结束后 hover 的 translateY
     被覆盖成 none —— 带入场动画的卡片其实一直没能浮起来。
     本层位于文件末尾，重新声明即可恢复（特异性相同则后定义者胜）。 */
  .product-card:hover,
  .stack-card:hover,
  .service-card:hover,
  .machine-card:hover,
  .news-card:hover { transform: translateY(-4px); }

  /* 4 ── 光泽扫过：仅用于已声明 overflow:hidden 的容器，零布局风险 -------- */
  .product-card { position: relative; }

  .product-card::after,
  .solution-card::after,
  .news-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(105deg,
      transparent 34%,
      rgba(255, 255, 255, 0.34) 50%,
      transparent 66%);
    transform: translateX(-130%);
    transition: transform 0.9s var(--ease);
  }

  .product-card:hover::after,
  .solution-card:hover::after,
  .news-card:hover .news-card-media::after { transform: translateX(130%); }

  /* 方案卡：轻微浮起（原本只有图片缩放，整卡缺少"可点"的体感） */
  .solution-card { transition: transform 0.35s var(--ease); }
  .solution-card:hover { transform: translateY(-4px); }

  /* 5 ── 服务卡图标 / 层序徽标：给一点机械感的回应 ----------------------- */
  .service-icon {
    transition: transform 0.35s var(--ease),
      background-color 0.3s var(--ease),
      color 0.3s var(--ease);
  }
  .service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.06);
    background: var(--brand);
    color: #fff;
  }

  .stack-index { transition: color 0.25s var(--ease), transform 0.3s var(--ease); }
  .stack-card:hover .stack-index { color: var(--accent-ink); transform: translateX(3px); }

  /* 6 ── 芯片 / 筛选标签：浮起并填入品牌浅底 ----------------------------- */
  .chip:hover {
    transform: translateY(-2px);
    background: var(--brand-light);
    box-shadow: var(--shadow-xs);
  }

  /* 7 ── 列表行：左侧品牌色竖条自上而下展开（内缩以避开圆角） ------------ */
  .product-row,
  .download-row { position: relative; }

  .product-row::before,
  .download-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: center top;
    transition: transform 0.34s var(--ease);
    pointer-events: none;
  }
  .product-row:hover::before,
  .download-row:hover::before { transform: scaleY(1); }

  /* 8 ── 主导航：文字转品牌蓝，与既有下划线动画同步 ---------------------- */
  .nav-links a { transition: color 0.22s var(--ease); }
  .nav-links a:hover:not(.nav-cta) { color: var(--brand); }

  /* 9 ── 页脚 / 面包屑链接：下划线自左展开 ------------------------------- */
  .footer-col a,
  .footer-bottom a,
  .breadcrumb a { position: relative; }

  .footer-col a::after,
  .footer-bottom a::after,
  .breadcrumb a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease);
    pointer-events: none;
  }
  .footer-col a:hover::after,
  .footer-bottom a:hover::after,
  .breadcrumb a:hover::after { transform: scaleX(1); }

  /* 10 ── 社交图标：上浮（平台品牌色沿用既有 nth-child 规则） ------------- */
  .fc-social a {
    transition: color 0.2s var(--ease),
      background-color 0.2s var(--ease),
      transform 0.25s var(--ease);
  }
  .fc-social a:hover { transform: translateY(-3px); }

  /* 11 ── 按钮：按下回弹 + 主按钮光晕 ------------------------------------ */
  .btn:active { transform: translateY(0) scale(0.985); }
  .btn-primary:hover { box-shadow: 0 12px 26px rgba(27, 70, 145, 0.26); }
  .btn-outline:hover { box-shadow: 0 12px 26px rgba(23, 32, 40, 0.16); }

  /* 12 ── 分组卡 / 分栏卡 / 首页数据块：轻浮起 --------------------------- */
  .group-panel,
  .column-card { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
  .group-panel:hover,
  .column-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

  .stat { transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
  .stat:hover { transform: translateY(-3px); }
  .stat-strip-light .stat:hover { background: #eef3f9; }

  /* 13 ── 返回顶部按钮：上浮（保留 visibility 过渡，避免闪现） ------------ */
  .to-top {
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
      background-color 0.2s var(--ease), color 0.2s var(--ease),
      visibility 0.25s, box-shadow 0.25s var(--ease);
  }
  .to-top.is-visible:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(23, 32, 40, 0.24);
  }

  /* 14 ── 表单控件：悬停即提示可编辑 ------------------------------------- */
  .field input:hover,
  .field select:hover,
  .field textarea:hover { border-color: #aebecd; }

}

/* 键盘可达性：只在键盘聚焦时出现，不参与布局（outline 不影响盒模型）。
   有意放在 hover 媒体查询之外 —— 触屏与键盘用户同样需要焦点可见。 */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}


/* ------------------------------------------------------- news detail (2026-11-16)
   Article index + standalone post pages. Only new selectors: no existing rule is
   touched, so the rest of the site's layout is unaffected. */

/* Index: card grid uses the existing .card-grid / .news-card rules. */
.news-index { margin-top: 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 0; }
.section-head .muted { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Detail: two columns on desktop, stacked on small screens. */
.article-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(240px, 0.85fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.article-detail-main { min-width: 0; max-width: 76ch; }
.article-detail-main h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.14; margin: 8px 0 18px; }
.article-detail-main > .lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 32px; }
.article-detail-main .article-body { margin-top: 8px; gap: 16px; }
.article-detail-main .article-body p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; margin: 0; }
.article-detail-main .article-body h3 { font-size: 1.28rem; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-detail-main .article-body h2 { font-size: 1.5rem; margin-top: 28px; }

/* Sources block — deliberately quiet, sits under the article body. */
.article-references { margin-top: 40px; padding: 22px 24px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.article-references .eyebrow { margin: 0 0 10px; }
.article-references p { margin: 0 0 8px; }
.article-references .ref-note { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }

/* Prev / next navigation. */
.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.pager-link { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: 0.25s var(--ease); }
.pager-link:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pager-link span { font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.pager-link strong { color: var(--ink); font-size: 0.96rem; font-weight: 600; line-height: 1.4; }
.pager-next { text-align: right; align-items: flex-end; }

/* Sidebar. */
.article-detail-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.side-panel { padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.side-panel .eyebrow { margin: 0 0 12px; }
.side-panel p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin: 0 0 14px; }
.side-panel .btn { width: 100%; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.side-list li { display: grid; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-list a { color: var(--ink); font-size: 0.94rem; font-weight: 500; line-height: 1.4; text-decoration: none; }
.side-list a:hover { color: var(--brand); }
.side-list time { color: var(--muted-2); font-size: 0.76rem; font-family: var(--font-mono); }

@media (max-width: 900px) {
  .article-detail { grid-template-columns: 1fr; }
  .article-detail-side { position: static; }
  .article-pager { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section-head { flex-direction: column; align-items: start; gap: 8px; }
  .article-references { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
