:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --soft: #eef5fb;
  --text: #111827;
  --muted: #667085;
  --line: #d8e3ee;
  --blue: #066bd8;
  --cyan: #07aeea;
  --deep: #12365d;
  --gold: #c59a52;
  --shadow: 0 24px 80px rgba(15, 39, 71, 0.08);
  --shadow-hover: 0 28px 64px rgba(15, 39, 71, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --section-gap: 80px;
  --glow-blue: 0 0 28px rgba(8, 120, 242, 0.08);
  --product-stage: linear-gradient(180deg, #f8fbfe 0%, #edf4fa 48%, #dfeaf3 100%);
  --product-stage-line: rgba(119, 143, 168, 0.42);
  --dark-bg: #0b1829;
  --dark-surface: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

/* ── 1. Background layers ── */

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle, rgba(8, 120, 242, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(7, 174, 234, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 38%, rgba(8, 120, 242, 0.06), transparent 40rem),
    radial-gradient(circle at 22% 100%, rgba(197, 154, 82, 0.04), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 48rem);
  background-size: 32px 32px, auto, auto, auto, auto;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

:where(a, button, summary):focus-visible {
  outline: 3px solid rgba(6, 107, 216, 0.86);
  outline-offset: 3px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: -22vh -18vw;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(230, 247, 255, 0.58), rgba(237, 232, 255, 0.48) 32%, rgba(218, 244, 255, 0.52) 62%, rgba(247, 250, 255, 0.72)),
    radial-gradient(circle at 18% 22%, rgba(8, 120, 242, 0.18), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(124, 92, 255, 0.16), transparent 30%),
    radial-gradient(circle at 54% 82%, rgba(7, 174, 234, 0.13), transparent 32%);
  background-size: 220% 220%, 100% 100%, 100% 100%, 100% 100%;
  opacity: 0.78;
  transform: translate3d(0, 0, 0) scale(1.02);
  animation: ambientGradientFlow 28s ease-in-out infinite alternate;
}

body::after {
  inset: -12vh -10vw;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.72), transparent 21rem),
    radial-gradient(circle at 82% 34%, rgba(222, 235, 255, 0.78), transparent 24rem),
    radial-gradient(circle at 48% 86%, rgba(236, 232, 255, 0.68), transparent 23rem);
  filter: blur(18px);
  opacity: 0.74;
  transform: translate3d(0, 0, 0);
  animation: ambientLightDrift 36s ease-in-out infinite alternate;
}

.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.36;
  pointer-events: none;
  mix-blend-mode: multiply;
}

@keyframes ambientGradientFlow {
  0% {
    background-position: 0% 48%, center, center, center;
    filter: saturate(1) hue-rotate(0deg);
    transform: translate3d(-1.5vw, -1vh, 0) scale(1.03);
  }
  50% {
    background-position: 56% 52%, center, center, center;
    filter: saturate(1.08) hue-rotate(5deg);
    transform: translate3d(1.5vw, 1.2vh, 0) scale(1.06);
  }
  100% {
    background-position: 100% 48%, center, center, center;
    filter: saturate(1.02) hue-rotate(-4deg);
    transform: translate3d(0.6vw, -0.8vh, 0) scale(1.04);
  }
}

@keyframes ambientLightDrift {
  0% {
    opacity: 0.58;
    transform: translate3d(-2vw, 1vh, 0) scale(1);
  }
  50% {
    opacity: 0.82;
    transform: translate3d(2vw, -1.2vh, 0) scale(1.05);
  }
  100% {
    opacity: 0.68;
    transform: translate3d(0.8vw, 1.8vh, 0) scale(1.02);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

/* ── 2. Header – frosted glass ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(8px, 1.2vw, 18px) 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  overflow: visible;
  transform: translate3d(0, 0, 0);
  transition:
    transform 260ms var(--ease),
    background-color 220ms var(--ease),
    border-color 220ms var(--ease),
    backdrop-filter 220ms var(--ease),
    -webkit-backdrop-filter 220ms var(--ease);
  will-change: transform;
}

.site-header.is-scrolled,
.site-header:focus-within,
.site-header.has-open-menu {
  border-bottom-color: rgba(184, 201, 220, 0.42);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header.is-hidden {
  pointer-events: none;
  transform: translate3d(0, calc(-100% - 10px), 0);
}

.site-header::after {
  content: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--deep);
  font-weight: 780;
  --brand-logo-height: 38px;
  flex: 0 0 auto;
  transition: opacity 200ms;
}

.brand:hover {
  opacity: 0.8;
}

.brand img {
  width: auto;
  height: var(--brand-logo-height);
  object-fit: contain;
}

.brand span {
  font-size: calc(var(--brand-logo-height) * 2 / 3);
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  margin-left: auto;
  min-width: 0;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #526171;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
  transition: color 200ms, background 200ms;
}

.main-nav a:last-child {
  padding-right: 0;
}

.main-nav a:hover {
  color: var(--deep);
  background: rgba(238, 245, 251, 0.7);
}

.main-nav a.active {
  color: var(--blue);
  background: rgba(238, 245, 251, 0.7);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-menu {
  position: relative;
  display: none;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-menu summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 38px;
  border-radius: 999px;
  color: #526171;
  font-size: 20px;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  user-select: none;
  transition: color 200ms, background 200ms;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::marker {
  content: "";
}

.nav-menu[open] summary {
  color: var(--deep);
  background: var(--soft);
}

.nav-menu[open] summary span[aria-hidden] {
  opacity: 0;
}

.nav-menu[open] summary::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: var(--blue);
}

.nav-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  z-index: 30;
  animation: menuSlideDown 220ms var(--ease);
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-menu-panel a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #526171;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
  transition: color 200ms, background 200ms;
}

.nav-menu-panel a:hover {
  color: var(--deep);
  background: var(--soft);
}

.nav-menu-panel a.active {
  color: var(--blue);
  background: var(--soft);
}

/* ── Main ── */

main {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ── 5. Hero – enhanced ── */

.hero {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 4vw, 56px) 46px;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 120, 242, 0.06), rgba(7, 174, 234, 0.02) 50%, transparent 72%);
  filter: blur(40px);
  animation: heroOrb 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -4%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 154, 82, 0.04), transparent 70%);
  filter: blur(30px);
  animation: heroOrb 24s ease-in-out infinite reverse;
  pointer-events: none;
  z-index: -1;
}

@keyframes heroOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-18px, 14px) scale(1.04); }
  66% { transform: translate(12px, -8px) scale(0.97); }
}

.hero-heading {
  margin-bottom: clamp(26px, 4vw, 46px);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.54fr) minmax(0, 1fr);
  gap: clamp(24px, 3.8vw, 48px);
  align-items: start;
}

.hero-copy {
  padding-top: 6px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 1120px;
  margin: 0;
  color: #0b1728;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
}

.company-highlight {
  padding: 0 0.08em;
  color: var(--deep);
  background: linear-gradient(180deg, transparent 58%, rgba(8, 120, 242, 0.16) 0);
  font-weight: 860;
}

.page-hero p:not(.eyebrow) {
  width: 100%;
  max-width: none;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.72;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.capability-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #243547;
  font-size: 14px;
  font-weight: 680;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}

.capability-row span:hover {
  border-color: var(--blue);
  background: var(--soft);
  box-shadow: var(--glow-blue);
}

/* ── Scenario Carousel ── */

.scenario-carousel {
  position: relative;
  margin: 0;
}

.scenario-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(184, 201, 220, 0.6);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.scenario-track {
  display: flex;
  transform: translateX(0);
  transition: transform 620ms var(--ease);
}

.scenario-track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.scenario-btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(216, 227, 238, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 39, 71, 0.12);
  color: var(--deep);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 200ms, color 200ms, transform 200ms, box-shadow 200ms;
}

.scenario-btn:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 30px rgba(8, 120, 242, 0.28);
}

.scenario-btn.prev {
  left: 14px;
}

.scenario-btn.next {
  right: 14px;
}

.scenario-carousel figcaption {
  margin-top: 14px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 820;
  text-align: center;
}

/* ── Sections shared ── */

.section,
.contact-section,
.showcase-band,
.category-section,
.page-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.contact-section {
  scroll-margin-top: 96px;
  padding-bottom: var(--section-gap);
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
  font-style: normal;
}

.contact-detail {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.contact-detail-wide {
  grid-column: auto;
}

.contact-detail span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
}

.contact-detail strong,
.contact-detail a {
  color: #0f2034;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.contact-detail a {
  transition: color 200ms;
}

.contact-detail a:hover {
  color: var(--blue);
}

.contact-detail small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contact-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
}

.contact-media-card {
  margin: 0;
}

.contact-media-card img {
  width: 100%;
  aspect-ratio: 1.6;
  border: 1px solid rgba(184, 201, 220, 0.6);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  object-fit: contain;
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.contact-media-card:hover img {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ── 7. Decorative section separators ── */

.showcase-band {
  position: relative;
  padding-bottom: var(--section-gap);
}

.showcase-band::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: var(--section-gap) auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.4;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2 {
  max-width: 780px;
  margin: 0;
  color: #0d1d32;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.12;
}

/* ── Auto Rail / Carousel ── */

.carousel-shell {
  position: relative;
}

.auto-rail {
  position: relative;
  isolation: isolate;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  scroll-behavior: auto;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.auto-rail::-webkit-scrollbar {
  display: none;
}

.auto-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.rail-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 24px;
  padding: 42px 56px;
}

.rail-item {
  --rail-scale: 0.9;
  --rail-lift: 8px;
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  z-index: 1;
}

.rail-item::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  transform: translateY(var(--rail-lift)) scale(var(--rail-scale));
  transform-origin: center;
  inset: 0;
  border: 1px solid var(--product-stage-line);
  border-radius: 12px;
  background: var(--product-stage);
  transition: transform 180ms var(--ease);
}

.rail-item img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.38;
  padding: 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  filter: saturate(1.03) contrast(1.03);
  mix-blend-mode: multiply;
  object-fit: contain;
  transform: translateY(var(--rail-lift)) scale(var(--rail-scale));
  transform-origin: center;
  transition: transform 180ms var(--ease);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.auto-rail.compact .rail-item {
  width: 260px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(216, 227, 238, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(15, 39, 71, 0.12);
  color: var(--deep);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 200ms, color 200ms, transform 200ms, box-shadow 200ms;
}

.carousel-btn:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 30px rgba(8, 120, 242, 0.28);
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

/* ── Product Entry Grid (homepage) ── */

.product-entry-grid,
.process-grid,
.product-grid {
  display: grid;
  gap: 18px;
}

.product-entry-grid {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) var(--section-gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-entry-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.4;
}

/* ── 3. Card type system ── */

.entry-card,
.product-card,
.process-grid article {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  transition: transform 360ms var(--ease), border-color 360ms, background 360ms;
}

.entry-card::before,
.process-grid article::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.entry-card:hover,
.product-card:hover,
.process-grid article:hover {
  transform: translateY(-4px);
}

.entry-card:hover {
  border-color: rgba(6, 107, 216, 0.28);
}

.product-card:hover {
  border-color: rgba(6, 107, 216, 0.22);
  background: rgba(255, 255, 255, 0.98);
}

.process-grid article:hover {
  border-color: rgba(197, 154, 82, 0.34);
}

.entry-card {
  --entry-accent: var(--blue);
  display: grid;
  grid-template-rows: auto 1fr;
  border-color: rgba(6, 107, 216, 0.16);
  background: #fff;
  overflow: hidden;
}

.entry-card:nth-child(2) {
  --entry-accent: var(--cyan);
}

.entry-card:nth-child(3) {
  --entry-accent: var(--gold);
}

.entry-card:nth-child(4) {
  --entry-accent: #138a62;
}

.entry-card::before {
  inset: 0 auto 0 0;
  z-index: 3;
  width: 4px;
  background: var(--entry-accent);
  opacity: 0.88;
}

.entry-media {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  margin: 0;
  padding: 20px 18px;
  background: linear-gradient(180deg, #fbfdff, #eef6fb);
  overflow: hidden;
}

.entry-media::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 18px;
  z-index: 0;
  border: 1px solid var(--product-stage-line);
  border-radius: 12px;
  background: var(--product-stage);
}

.entry-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 16px;
  background: transparent;
  filter: saturate(1.02) contrast(1.02);
  mix-blend-mode: multiply;
  object-fit: contain;
  object-position: center;
  transition: transform 420ms var(--ease);
}

.entry-card:hover .entry-media img {
  transform: none;
}

.entry-content {
  position: relative;
  z-index: 1;
  padding: 24px 24px 24px 26px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(216, 227, 238, 0.6);
}

.card-kicker {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-card h3,
.product-card h3,
.process-grid h3 {
  margin: 0;
  color: #0f2034;
  font-size: 23px;
}

.entry-card h3 {
  white-space: nowrap;
  word-break: keep-all;
}

.entry-card p,
.product-card p,
.process-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.entry-card .card-kicker {
  color: var(--entry-accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* ── 6. Button shimmer ── */

.entry-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #0668d6);
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  overflow: hidden;
  transition: background 200ms, transform 200ms, box-shadow 200ms;
}

.entry-card a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

.entry-card a:hover::before {
  left: 100%;
  transition: left 500ms;
}

.entry-card a::after {
  content: "→";
  font-size: 15px;
  transition: transform 200ms;
}

.entry-card a:hover {
  background: linear-gradient(135deg, #0668d6, #0558b8);
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(8, 120, 242, 0.3);
}

.entry-card a:hover::after {
  transform: translateX(3px);
}

/* ── 4. Manufacturing section ── */

.manufacturing-band {
  position: relative;
  background: transparent;
  overflow: hidden;
}

.manufacturing-band::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(72px, 18vw);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.34;
  pointer-events: none;
  transform: translateX(-50%);
}

/* ── Process Section ── */

.process-section,
.category-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) var(--section-gap);
}

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

.process-grid article {
  overflow: hidden;
  padding: 30px;
  border-color: rgba(197, 154, 82, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 246, 0.94));
}

.process-grid article::before {
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(197, 154, 82, 0.12));
}

.process-grid article:nth-child(2) {
  border-color: rgba(6, 107, 216, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 254, 0.94));
}

.process-grid article:nth-child(2)::before {
  background: linear-gradient(90deg, var(--blue), rgba(7, 174, 234, 0.14));
}

.process-grid article:nth-child(3) {
  border-color: rgba(19, 138, 98, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 249, 0.94));
}

.process-grid article:nth-child(3)::before {
  background: linear-gradient(90deg, #138a62, rgba(7, 174, 234, 0.14));
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 1px solid rgba(197, 154, 82, 0.24);
  background: rgba(255, 248, 232, 0.88);
  color: var(--gold);
  font-size: 15px;
  font-weight: 900;
}

.process-grid article:nth-child(2) span {
  border-color: rgba(6, 107, 216, 0.2);
  background: rgba(238, 245, 251, 0.9);
  color: var(--blue);
}

.process-grid article:nth-child(3) span {
  border-color: rgba(19, 138, 98, 0.2);
  background: rgba(232, 247, 241, 0.9);
  color: #138a62;
}

/* ── Page Hero (subpages) ── */

.page-hero {
  padding-top: clamp(54px, 8vw, 96px);
  padding-bottom: 60px;
}

.page-showcase {
  padding-bottom: 62px;
}

/* ── Product Grid (subpages) ── */

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

.product-card {
  isolation: isolate;
  min-height: 100%;
  padding: 14px;
  border-color: rgba(184, 201, 220, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.94));
  overflow: hidden;
}

.product-media {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.28;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--product-stage-line);
  border-radius: 10px;
  background: var(--product-stage);
  transition: border-color 420ms var(--ease);
}

.product-media img,
.product-card > img {
  width: 100%;
  aspect-ratio: 1.28;
  padding: 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  filter: saturate(1.03) contrast(1.03);
  mix-blend-mode: multiply;
  object-fit: contain;
  transition: transform 420ms var(--ease);
}

.product-media img {
  height: 100%;
  aspect-ratio: auto;
}

.product-card > img {
  border: 1px solid var(--product-stage-line);
  background: var(--product-stage);
  transition: transform 420ms var(--ease), border-color 420ms var(--ease);
}

.product-card:hover .product-media,
.product-card:hover > img {
  border-color: rgba(6, 107, 216, 0.28);
}

.product-card:hover .product-media img,
.product-card:hover > img {
  transform: scale(1.04);
}

.product-card h3 {
  margin-top: 18px;
  font-size: 19px;
}

.product-card span {
  display: inline-flex;
  margin-top: 16px;
  padding: 7px 10px;
  border: 1px solid rgba(6, 107, 216, 0.14);
  border-radius: 999px;
  background: rgba(238, 245, 251, 0.9);
  color: var(--deep);
  font-size: 12px;
  font-weight: 820;
  transition: background 200ms, border-color 200ms, color 200ms;
}

.product-card:hover span {
  border-color: rgba(6, 107, 216, 0.3);
  background: rgba(238, 245, 251, 1);
  color: var(--blue);
}

/* ── Footer – dark theme ── */

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 40px;
  padding: 40px clamp(20px, 4vw, 56px);
  border-top: none;
  background: var(--dark-bg);
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 120, 242, 0.2) 30%, rgba(7, 174, 234, 0.16) 70%, transparent);
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: #e2e8f0;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  transition: color 200ms;
}

.footer-nav a:hover {
  color: var(--cyan);
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.site-footer a[href^="tel"],
.site-footer a[href^="mailto"] {
  transition: color 200ms;
}

.site-footer a[href^="tel"]:hover,
.site-footer a[href^="mailto"]:hover {
  color: var(--cyan);
}

.site-footer .footer-copyright {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  opacity: 1;
}

/* ── Scroll Animations ── */

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate-delay="1"] { transition-delay: 80ms; }
[data-animate-delay="2"] { transition-delay: 160ms; }
[data-animate-delay="3"] { transition-delay: 240ms; }
[data-animate-delay="4"] { transition-delay: 320ms; }

/* ── CTA Banner ── */

.cta-banner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) var(--section-gap);
  text-align: center;
}

.cta-banner a {
  position: relative;
  display: inline-block;
  margin: 0;
  text-align: center;
  padding: 20px 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(8, 120, 242, 0.06), rgba(7, 174, 234, 0.14));
  border: 1px solid rgba(8, 120, 242, 0.22);
  color: var(--blue);
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  transition: background 200ms, border-color 200ms, transform 200ms, box-shadow 200ms;
}

.cta-banner a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(8, 120, 242, 0.08), transparent);
}

.cta-banner a:hover::before {
  left: 100%;
  transition: left 600ms;
}

.cta-banner a:hover {
  background: linear-gradient(135deg, rgba(8, 120, 242, 0.12), rgba(7, 174, 234, 0.22));
  border-color: rgba(8, 120, 242, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 120, 242, 0.12);
}

/* ── Responsive ── */

@media (max-width: 860px) {
  .site-header {
    gap: 12px;
    padding-left: clamp(16px, 3vw, 28px);
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding: 0 10px;
    font-size: 13px;
  }

  .main-nav a:last-child {
    padding-right: 0;
  }
}

@media (max-width: 980px) {
  .hero-body {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: 52px;
  }

  .contact-media-grid,
  .contact-details,
  .product-entry-grid,
  .process-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-detail-wide {
    grid-column: span 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .main-nav {
    display: none;
  }

  .nav-menu {
    display: block;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 16px 8px;
  }

  .brand {
    --brand-logo-height: clamp(15px, 4.5vw, 38px);
    gap: 8px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .contact-media-grid,
  .contact-details,
  .product-entry-grid,
  .process-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-detail-wide {
    grid-column: auto;
  }

  .entry-card {
    grid-template-rows: auto 1fr;
  }

  .entry-media {
    height: 220px;
    padding: 18px 16px;
  }

  .rail-item {
    width: 230px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rail-track {
    animation: none;
  }

  .site-header {
    transition: none;
  }

  .hero::before,
  .hero::after,
  body::before,
  body::after {
    animation: none;
  }

  .particle-canvas {
    display: none;
  }

  .entry-card a::before,
  .cta-banner a::before {
    display: none;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .entry-card:hover,
  .product-card:hover,
  .process-grid article:hover,
  .contact-media-card:hover img,
  .product-card:hover img,
  .scenario-btn:hover,
  .carousel-btn:hover,
  .entry-card a:hover,
  .cta-banner a:hover {
    transform: none;
  }
}
