@charset "utf-8";
/* ==========================================================================
   廣薪實業 GUANG XIN INDUSTRIAL — design system
   No webfont is loaded: CJK falls back to the platform UI face, so the
   font payload is 0 KB on every page.
   ========================================================================== */

:root {
  --deep: #092b25;
  --green: #123f35;
  --green-mid: #1a5647;
  --ink: #102923;
  --lime: #b8db4a;
  /* lime-ink is the only lime allowed on light backgrounds: measured 4.5:1+
     against #fff, the #f5f8f4 surface and the #f2f8ee patent panel */
  --lime-ink: #5f7a19;
  --cream: #f3f1e9;
  --surface: #f5f8f4;
  --surface-2: #eef3ec;
  --line: #dde3dd;
  --line-soft: #e9eee8;
  --muted: #5c6b64;
  --muted-2: #67736d;           /* measured 4.5:1+ on #fff and the light panels */
  --warn: #a4560a;
  --warn-bg: #fdf4e3;
  --danger: #9b2c2c;
  --white: #fff;

  --shell: 1360px;
  --read: 880px;
  --wide: 1120px;

  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 2px 14px rgba(9, 43, 37, .07);
  --shadow-lg: 0 18px 48px rgba(9, 43, 37, .16);

  --font: "PingFang TC", "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;

  --head-h: 86px;
  --rail-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
/* the <picture> wrapper must not become a layout box, or object-fit/aspect-ratio
   containers would size against it instead of the image */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.4; font-weight: 700; }
p, ul, ol, dl, figure, table { margin: 0; }
button { font: inherit; }

.container { width: min(var(--shell), calc(100% - 56px)); margin-inline: auto; }
.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;
}
:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px;
}

/* ==========================================================================
   1. Header shell — topline + header + service rail, all sticky together
   ========================================================================== */
/* isolation: the header owns its own stacking context, so no z-index inside
   <main> can ever paint over the open mobile menu */
.site-head {
  position: sticky; top: 0; z-index: 900;
  background: var(--white); isolation: isolate;
}

.topline {
  height: 34px; background: var(--deep); color: #a9bdb6;
  font-size: 12px; letter-spacing: .05em; overflow: hidden;
  transition: height .25s ease;
}
.topline .container { height: 34px; display: flex; align-items: center; gap: 26px; }
.topline .tl-tel { margin-left: auto; color: var(--white); font-weight: 700; }
.topline .tl-tel:hover { color: var(--lime); }

.header {
  height: var(--head-h); background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  transition: height .25s ease;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 18px; }

.logo { display: flex; align-items: center; flex: none; }
.logo .logo-img { width: auto; height: 48px; transition: height .25s ease; }

.desktop-nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 30px); margin-left: auto; }
.desktop-nav > li { list-style: none; position: relative; }
.desktop-nav > li > a {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--ink);
  height: var(--head-h); white-space: nowrap; position: relative;
  transition: height .25s ease;
}
.desktop-nav > li > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 26px;
  height: 2px; background: var(--lime); transition: right .25s ease;
}
.desktop-nav > li:hover > a::after,
.desktop-nav > li > a[aria-current="page"]::after { right: 0; }
.caret { font-size: 9px; color: var(--muted-2); transition: transform .2s ease; }
.desktop-nav > li:hover .caret { transform: rotate(180deg); }

.header-cta {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; background: var(--green); color: var(--white);
  font-size: 15px; font-weight: 700; border-radius: 999px;
  transition: background .2s ease;
}
.header-cta span { color: var(--lime); }
.header-cta:hover { background: var(--deep); }

/* --- mega panel -------------------------------------------------------- */
.mega {
  position: absolute; top: 100%; left: 50%; translate: -50% 0;
  width: min(var(--wide), 92vw);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 26px 30px 24px;
  display: grid; gap: 26px;
  opacity: 0; visibility: hidden; translate: -50% 10px;
  transition: opacity .2s ease, translate .2s ease, visibility .2s;
}
.mega-4 { grid-template-columns: repeat(4, 1fr); }
.mega-2 { grid-template-columns: repeat(2, 1fr); width: min(620px, 92vw); }
.has-mega:hover .mega, .has-mega:focus-within .mega {
  opacity: 1; visibility: visible; translate: -50% 0;
}
.mega-col h4 {
  font-size: 11px; letter-spacing: .14em; color: var(--lime-ink);
  text-transform: uppercase; padding-bottom: 9px; margin-bottom: 10px;
  border-bottom: 2px solid var(--surface-2);
}
.mega-col ul { list-style: none; padding: 0; }
.mega-col li + li { margin-top: 2px; }
.mega-col a {
  display: block; padding: 8px 12px; border-radius: var(--radius-s);
  font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink);
  transition: background .16s ease, color .16s ease;
}
.mega-col a small { display: block; font-size: 12px; font-weight: 400; color: var(--muted-2); }
.mega-col a:hover { background: var(--surface); color: var(--green); }
.mega-col a:hover small { color: var(--muted); }

/* --- service rail: the 7 priority pages, visible on every page ---------- */
.service-rail { background: var(--green); border-bottom: 3px solid var(--lime); }
.rail-inner {
  height: var(--rail-h); display: flex; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0;
}
.rail-label {
  flex: none; font-size: 10.5px; letter-spacing: .16em; color: #8fada2;
  padding-right: 14px; margin-right: 4px; border-right: 1px solid #29584c;
}
.service-rail li { flex: none; }
.service-rail a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #d7e5df; white-space: nowrap;
  border: 1px solid transparent; transition: all .18s ease;
}
.service-rail a::before {
  content: "◈"; font-size: 9px; color: var(--lime); transition: transform .18s ease;
}
.service-rail a:hover { background: #1c5245; color: var(--white); border-color: #2c6a59; }
.service-rail a:hover::before { transform: rotate(90deg); }
.service-rail a[aria-current="page"] {
  background: var(--lime); color: var(--deep); font-weight: 700;
}
.service-rail a[aria-current="page"]::before { color: var(--deep); }

/* compact-on-scroll (progressive enhancement; layout is valid without JS) */
.is-compact .topline { height: 0; }
.is-compact .header { height: 66px; }
.is-compact .desktop-nav > li > a { height: 66px; }
.is-compact .desktop-nav > li > a::after { bottom: 16px; }
.is-compact .logo .logo-img { height: 40px; }

/* --- mobile ------------------------------------------------------------- */
.menu-toggle { display: none; }
.menu-button {
  display: none; flex: none; width: 46px; height: 46px; margin-left: auto;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  cursor: pointer; background: var(--white);
}
.menu-button i { display: block; width: 20px; height: 2px; background: var(--green); }
.mobile-menu { display: none; }

/* ==========================================================================
   2. Page hero / breadcrumb
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--deep); color: var(--white);
  padding: 62px 0 66px;
}
.page-grid, .hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-size: 13px; color: #90a89f; margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb [aria-current] { color: #cfdcd6; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lime); }
.eyebrow.light { color: #8fa89f; }

.page-hero h1 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); line-height: 1.3; max-width: 26ch; }
/* the second half of a ｜-separated headline becomes a subtitle: same words,
   two readable lines instead of one run-on wrap */
.page-hero h1 .h1-sub {
  display: block; margin-top: 12px;
  font-size: .62em; font-weight: 600; line-height: 1.45;
  color: #a8c2b8; max-width: 30ch;
}
.page-hero .lede {
  margin-top: 18px; max-width: 62ch; font-size: 17.5px; color: #b9cbc4; line-height: 1.85;
}
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-facts span {
  font-size: 13px; font-weight: 600; color: #d5e4dd;
  padding: 6px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(184, 219, 74, .3);
}

/* ==========================================================================
   3. Article: 880px reading column, breakout for wide blocks
   ========================================================================== */
.article {
  display: grid;
  grid-template-columns: 1fr min(var(--read), 100%) 1fr;
  padding: 56px 28px 20px;
  column-gap: 0;
}
.article > * { grid-column: 2; }
.article > .wide {
  grid-column: 1 / -1;
  width: min(var(--wide), 100%);
  margin-inline: auto;
}

.article h2 {
  font-size: clamp(1.32rem, 2.4vw, 1.66rem);
  color: var(--green); margin: 54px 0 18px;
  padding-bottom: 12px; border-bottom: 2px solid var(--surface-2);
  scroll-margin-top: 150px;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 1.14rem; color: var(--ink); margin: 32px 0 12px;
  padding-left: 13px; border-left: 4px solid var(--lime);
}
.article h4 { font-size: 1.02rem; color: var(--green-mid); margin: 24px 0 8px; }
.article p { margin-bottom: 20px; }
.article strong { color: var(--green); font-weight: 700; }
/* :where() keeps this at (0,1,1) so component rules further down -- the ones
   for links on dark panels -- can override it without a specificity war */
.article a:not(:where(.cta-btn, .rl-more)) {
  color: var(--green); text-decoration: underline;
  text-decoration-color: var(--lime); text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.article a:not(:where(.cta-btn, .rl-more)):hover { color: var(--lime-ink); }
.article ul, .article ol { margin: 0 0 22px; padding-left: 26px; }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--lime-ink); font-weight: 700; }
.article figure { margin: 30px 0; }
.article figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--muted); text-align: center;
}
.article > img, .article figure img { border-radius: var(--radius); }

/* --- article components ------------------------------------------------- */
.post-tag {
  display: inline-block; background: var(--green); color: var(--white);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13.5px; color: var(--muted); margin-bottom: 8px;
}

.hero-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--deep) 100%);
  border-radius: var(--radius); padding: 32px 30px; margin: 0 0 36px;
  color: var(--white); box-shadow: var(--shadow);
}
.hero-band .hb-eyebrow {
  font-size: 11.5px; letter-spacing: .14em; color: var(--lime);
  font-weight: 700; text-transform: uppercase; margin-bottom: 12px;
}
.hero-band .hb-claim { font-size: 1.16rem; font-weight: 700; line-height: 1.68; margin-bottom: 18px; }
.hero-band .hb-specs { display: flex; flex-wrap: wrap; gap: 9px; }
.hero-band .hb-specs span {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(184, 219, 74, .34);
  font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 999px;
}

.tldr {
  background: var(--surface); border-left: 5px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin-bottom: 40px;
}
.tldr-title {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--green); text-transform: uppercase; margin-bottom: 12px;
}
.tldr ul { margin: 0; padding-left: 22px; }
.tldr li { font-size: 16px; color: var(--muted); margin-bottom: 7px; }

.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 32px;
}
.info-card-title {
  font-size: 12px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.info-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin: 0; }
.info-card dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.info-card dd { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }

.warn-card {
  background: var(--warn-bg); border-left: 5px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 24px; margin: 24px 0 32px; font-size: 16px; line-height: 1.82;
}
.warn-card .warn-title {
  font-weight: 700; color: var(--warn); margin-bottom: 7px;
  font-size: 14px; letter-spacing: .04em;
}

.patent-box {
  background: #f2f8ee; border: 1px solid #cfe3b6; border-left: 5px solid var(--lime-ink);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; margin: 26px 0 34px;
}
.patent-box .pb-title {
  font-size: 12px; font-weight: 700; color: var(--lime-ink);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
.patent-box dl { display: grid; grid-template-columns: 140px 1fr; gap: 9px 18px; margin: 0; }
.patent-box dt { font-size: 13px; color: #4d6b1f; font-weight: 600; }
.patent-box dd { margin: 0; font-size: 15px; color: var(--ink); }
.patent-box .pb-pending { color: var(--muted-2); }

.formula-box {
  background: var(--green); color: var(--white); border-radius: var(--radius);
  padding: 24px 26px; margin: 24px 0 32px; font-size: 16px; line-height: 1.75;
  box-shadow: var(--shadow);
}
.formula-box strong { color: var(--lime); }
.formula-box .formula-label {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  color: #9fbcae; text-transform: uppercase; margin-bottom: 9px;
}

.spec-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.spec-pill {
  background: var(--surface-2); color: var(--green);
  font-size: 13px; font-weight: 600; padding: 6px 15px; border-radius: 999px;
}

.table-scroll { overflow-x: auto; margin: 28px 0 34px; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.compare-table th {
  background: var(--green); color: var(--white); padding: 13px 16px;
  text-align: left; font-weight: 600; font-size: 14.5px;
  position: sticky; top: 0;
}
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table tbody tr:nth-child(even) td { background: var(--surface); }
.compare-table td:first-child { font-weight: 600; color: var(--green); }

.chart-block {
  margin: 36px 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.chart-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.chart-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.chart-source { font-size: 12px; color: var(--muted-2); margin-top: 16px; text-align: right; }

.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  background: var(--surface); padding: 16px 20px;
  font-weight: 700; font-size: 16px; color: var(--green);
}
.faq-a { padding: 16px 20px; font-size: 16px; color: var(--muted); line-height: 1.85; }
.faq-a p:last-child { margin-bottom: 0; }

.cta-block {
  background: linear-gradient(135deg, var(--green) 0%, var(--deep) 100%);
  color: var(--white); border-radius: var(--radius);
  padding: 34px 30px; margin: 46px 0 34px; text-align: center;
}
.cta-block h3 {
  color: var(--white); margin: 0 0 10px; font-size: 20px;
  padding: 0; border: 0;
}
.cta-block p { color: #b6cdc3; font-size: 15.5px; margin: 0 0 20px; }
.cta-btn {
  display: inline-block; background: var(--lime); color: var(--deep);
  font-weight: 700; font-size: 15.5px; padding: 13px 32px; border-radius: 999px;
  transition: background .18s ease;
}
.cta-btn:hover { background: var(--white); }
.cta-tel { display: block; margin-top: 16px; font-size: 14px; color: #b6cdc3; }

/* every link that sits on a dark panel has to invert, or it renders
   dark-green-on-dark-green and disappears */
.cta-block a:not(.cta-btn),
.hero-band a,
.formula-box a {
  color: var(--white); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--lime);
  text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.cta-block a:not(.cta-btn):hover,
.hero-band a:hover,
.formula-box a:hover { color: var(--lime); }

.related-links {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px 26px; margin: 32px 0;
}
.related-links .rl-title {
  font-size: 12px; font-weight: 700; color: var(--green);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}
.related-links ul { margin: 0; padding-left: 20px; }
.related-links li { margin-bottom: 8px; font-size: 15.5px; }

.author-bar {
  display: flex; align-items: center; gap: 18px;
  padding: 24px 0; border-top: 1px solid var(--line); margin-top: 46px;
}
.author-avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--lime); font-size: 21px; font-weight: 700; flex: none;
}
.author-info { font-size: 14px; color: var(--muted); line-height: 1.7; }
.author-info strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

/* SVG chart label styles live in charts.css, generated from the source pages */

/* ==========================================================================
   4. Marketing sections
   ========================================================================== */
.section { padding: 84px 0; }
.section-head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px;
  align-items: end; margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.32; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: #a4bcb2; }

/* home hero */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--white); }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px;
  align-items: center; padding: 72px 0 60px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); line-height: 1.24; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-copy > p {
  margin: 22px 0 30px; max-width: 52ch; font-size: 17.5px;
  color: #b9cbc4; line-height: 1.85;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; transition: all .18s ease;
}
.btn-lime { background: var(--lime); color: var(--deep); }
.btn-lime:hover { background: var(--white); }
.btn-dark { background: var(--green); color: var(--white); }
.btn-dark:hover { background: var(--deep); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .3); color: var(--white); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.text-link { font-size: 15px; font-weight: 700; color: #cfe0d8; }
.text-link:hover { color: var(--lime); }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-stat {
  position: absolute; right: -14px; bottom: -22px;
  background: var(--lime); color: var(--deep);
  padding: 18px 24px; border-radius: var(--radius); text-align: center;
}
.hero-stat strong { display: block; font-size: 40px; line-height: 1; }
.hero-stat span { font-size: 10.5px; font-weight: 700; letter-spacing: .13em; }

/* the seven priority services, above the fold on the homepage */
.seven { background: var(--deep); padding-bottom: 78px; }
.seven-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.seven-head h2 { color: var(--white); font-size: 1.5rem; }
.seven-head p { color: #8fa89f; font-size: 14.5px; }
.seven-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.seven-card {
  display: flex; flex-direction: column;
  background: #0f382f; border: 1px solid #1d4d41;
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.seven-card:hover { transform: translateY(-5px); border-color: var(--lime); }
.seven-card .sc-img { aspect-ratio: 4 / 3; overflow: hidden; background: #0b2c25; }
.seven-card .sc-img img { width: 100%; height: 100%; object-fit: cover; }
.seven-card .sc-body { padding: 15px 15px 18px; display: flex; flex-direction: column; flex: 1; }
.seven-card .sc-no {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--lime); margin-bottom: 7px;
}
.seven-card h3 { font-size: 15.5px; color: var(--white); line-height: 1.45; margin-bottom: 7px; }
.seven-card p { font-size: 12.5px; color: #8fa89f; line-height: 1.65; flex: 1; }
.seven-card .sc-go { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--lime); }

/* service cards (4 classic OEM pages) */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); isolation: isolate;
}
.service-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(9, 43, 37, .94) 22%, rgba(9, 43, 37, .3) 72%);
}
.service-card:hover img { transform: scale(1.06); }
.service-no {
  position: absolute; top: 20px; right: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(255, 255, 255, .55);
}
.service-content { padding: 24px; }
.service-content small {
  display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--lime); margin-bottom: 8px;
}
.service-content h3 { font-size: 19px; margin-bottom: 9px; }
.service-content p { font-size: 14px; color: #c3d5cd; line-height: 1.7; }
.service-more { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--lime); }

/* about block: copy left, factory photo right */
.intro-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 54px; align-items: start; }
.intro-copy p { margin-bottom: 20px; line-height: 1.95; }
.intro-copy p:last-child { margin-bottom: 0; }
.intro-copy strong { color: var(--green); }
.intro-figure { margin: 0; position: relative; }
.intro-figure img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.intro-figure figcaption {
  margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* metric strip */
.metric-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--line);
}
.metric-row div strong { display: block; font-size: 40px; line-height: 1.1; color: var(--green); }
.metric-row div span { font-size: 14px; color: var(--muted); }

/* 6-step process */
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.process-list { display: grid; gap: 10px; }
.process-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 20px;
  transition: border-color .18s ease, background .18s ease;
}
.process-item:hover { border-color: var(--lime); background: var(--white); }
.process-item > span {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.process-item h3 { font-size: 16.5px; margin-bottom: 1px; }
.process-item p { font-size: 14px; color: var(--muted); }
.process-item b { margin-left: auto; color: var(--lime-ink); }

.flow-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.flow-row div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 18px 14px; text-align: center;
}
.flow-row span {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .12em; color: var(--lime-ink); margin-bottom: 6px;
}
.flow-row b { font-size: 15px; color: var(--ink); }

/* product gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.gallery-grid figcaption {
  margin-top: 9px; font-size: 13.5px; color: var(--muted); text-align: center;
}

/* video facades: the YouTube player is only fetched after a click, so six
   embeds cost six images instead of six megabytes */
.video-section { background: var(--surface); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 0; padding: 0; margin: 0; cursor: pointer;
  background: var(--deep); display: block; overflow: hidden;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(9, 43, 37, .1), rgba(9, 43, 37, .45));
  transition: background .25s ease;
}
.video-frame:hover img { transform: scale(1.05); }
.video-frame:hover::after { background: rgba(9, 43, 37, .2); }
.vc-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: var(--deep);
  display: grid; place-items: center; font-size: 22px; padding-left: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transition: transform .25s ease;
}
.video-frame:hover .vc-play { transform: scale(1.09); }
/* once the player is in, nothing may sit on top of it or the YouTube controls
   (fullscreen, volume, scrubber) become unreachable */
.video-frame.is-playing { cursor: default; }
.video-frame.is-playing::after { content: none; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video-card .vc-body { padding: 16px 18px 20px; }
.video-card h3 { font-size: 16px; line-height: 1.5; margin-bottom: 7px; color: var(--ink); }
.video-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.video-card .vc-tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: var(--lime-ink); margin-bottom: 8px;
}

/* dark contact band */
.contact-band { background: var(--green); color: var(--white); padding: 66px 0; }
.contact-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.contact-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.35; }
.contact-band p { color: #b6cdc3; margin-bottom: 22px; font-size: 16.5px; }
.contact-phone { display: block; margin-top: 15px; font-size: 14.5px; color: #b6cdc3; }
.contact-phone:hover { color: var(--lime); }

/* two-column product intro */
.product-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 54px; align-items: start; }
.product-image { position: relative; }
.product-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-image span {
  position: absolute; top: 16px; left: 16px;
  background: var(--lime); color: var(--deep);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 14px; border-radius: 999px;
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.footer { background: var(--deep); color: #9db3ab; padding: 70px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h4 {
  color: var(--white); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--lime); }
.footer-logo { margin-bottom: 18px; }
.footer-logo b { color: var(--white); }
.footer-logo small { color: #7f948c; }
.footer-about { line-height: 1.85; max-width: 34ch; }
.footer-contact li { display: flex; gap: 9px; }
.footer-contact b { color: var(--lime); flex: none; font-weight: 600; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid #24473f; font-size: 13px; color: #cfe0d8;
}
.footer-social a:hover { border-color: var(--lime); color: var(--lime); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding: 22px 0; border-top: 1px solid #1c3c34;
  font-size: 13px; color: #7f948c;
}
.footer-keywords {
  padding: 24px 0 0; border-top: 1px solid #1c3c34; margin-top: 46px;
  font-size: 12.5px; line-height: 2; color: #6d827b;
}
.footer-keywords b { display: block; color: #9db3ab; font-size: 12px; letter-spacing: .1em; margin-bottom: 8px; }

/* ==========================================================================
   6. Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .container { width: calc(100% - 40px); }
  .seven-grid { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 1024px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: flex; }
  .hero-inner, .process-grid, .product-layout, .takesoft-grid, .intro-grid,
  .contact-band .container, .section-head { grid-template-columns: 1fr !important; }
  .intro-figure img { aspect-ratio: 16 / 9; }
  .hero-inner { gap: 40px; padding: 52px 0 56px; }
  .section-head { gap: 14px; align-items: start; }
  .flow-row { grid-template-columns: repeat(3, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .section { padding: 62px 0; }

  /* rail becomes a swipeable strip so it never wraps or eats the viewport */
  .rail-inner {
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .rail-inner::-webkit-scrollbar { display: none; }
  .service-rail li { scroll-snap-align: start; }
  .rail-label { display: none; }

  .mobile-menu {
    display: block; position: relative; z-index: 10;
    max-height: 0; overflow: hidden;
    background: var(--white); transition: max-height .3s ease;
    overscroll-behavior: contain;
  }
  .menu-toggle:checked ~ .mobile-menu {
    max-height: min(78vh, 720px); overflow-y: auto;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(9, 43, 37, .22);
  }
  .menu-toggle:checked ~ .header .menu-button { background: var(--green); border-color: var(--green); }
  .menu-toggle:checked ~ .header .menu-button i { background: var(--lime); }
  .mobile-menu ul { list-style: none; margin: 0; padding: 8px 0 20px; }
  .mobile-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 4px; border-bottom: 1px solid var(--line-soft);
    font-size: 16px; font-weight: 600;
  }
  .mobile-menu a span { font-size: 11px; color: var(--lime-ink); font-weight: 700; letter-spacing: .1em; }
  .mobile-menu a b { margin-left: auto; color: var(--muted-2); font-weight: 400; }
  .mobile-menu .mm-group {
    padding: 18px 4px 6px; font-size: 11px; letter-spacing: .14em;
    color: var(--lime-ink); font-weight: 700; text-transform: uppercase;
  }
  .mobile-menu .mm-cta {
    display: block; margin: 18px 4px 0; padding: 15px; text-align: center;
    background: var(--green); color: var(--white); border-radius: 999px; border: 0;
  }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .topline .container { gap: 14px; font-size: 11px; }
  .topline .container span:nth-child(2) { display: none; }
  .logo .logo-img, .is-compact .logo .logo-img { height: 40px; }
  .article { padding: 40px 20px 12px; }
  .seven-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid, .gallery-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .info-card dl, .patent-box dl { grid-template-columns: 1fr; }
  .hero-band, .cta-block { padding: 24px 20px; }
  .tldr { padding: 20px 22px; }
  .hero-stat { right: 10px; bottom: -18px; padding: 14px 18px; }
  .hero-stat strong { font-size: 32px; }
  .footer { padding-top: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 32px); }
  .logo .logo-img, .is-compact .logo .logo-img { height: 34px; }
  .menu-button { width: 42px; height: 42px; }
  .flow-row { grid-template-columns: repeat(2, 1fr); }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .seven-grid { grid-template-columns: 1fr; }
  .seven-card { flex-direction: row; }
  .seven-card .sc-img { width: 116px; flex: none; aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-head, .footer, .cta-block, .contact-band { display: none; }
  .article { padding: 0; }
}
