/* ===== Jinghang Guoye Medical — refined design system ===== */
:root {
  --c-ink: #08090a;
  --c-text: #1d1d1f;
  --c-muted: #6e6e73;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f5f7;
  --c-border: rgba(0, 0, 0, .09);
  --c-accent: #0f6e56;
  --c-accent-dark: #085041;
  --radius: 20px;
  --radius-lg: 32px;
  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-dark); }

h1, h2, h3 { color: var(--c-ink); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.02em; }

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: #08090a; color: #f5f5f7; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #a1a1a6; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 1rem;
}
.section--dark .eyebrow { color: #5dcaa5; }

.lead { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: var(--c-muted); max-width: 48ch; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .lead { margin-bottom: 0; }

/* ===== Header / glass nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--c-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand__mark {
  width: 32px; height: 32px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand__name { font-weight: 600; font-size: 1rem; color: var(--c-ink); letter-spacing: -.01em; }
.brand__name small { display: block; font-weight: 400; font-size: .62rem; color: var(--c-muted); letter-spacing: .16em; text-transform: uppercase; }

.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--c-ink); font-size: .8rem; font-weight: 500; letter-spacing: .01em; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--c-ink); }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.nav-link-icon { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: transparent; color: var(--c-ink); cursor: pointer; font-size: 1.05rem;
  }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: .5rem var(--pad) 1.5rem;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .nav.is-open { max-height: 420px; opacity: 1; }
  .nav a { padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--c-border); font-size: .95rem; }
  .nav .btn { width: 100%; text-align: center; margin-top: 1rem; border-bottom: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: .72rem 1.5rem;
  border: 1px solid transparent; border-radius: 980px;
  background: var(--c-accent); color: #fff;
  font-size: .95rem; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--c-accent-dark); color: #fff; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: #e8e8ed; color: var(--c-ink); }
.btn--sm { padding: .55rem 1.15rem; font-size: .85rem; }

:focus-visible { outline: 3px solid #378add; outline-offset: 3px; border-radius: 6px; }

/* ===== Hero ===== */
.hero {
  padding: clamp(4.5rem, 11vw, 8rem) 0 0;
  text-align: center;
  background: radial-gradient(1100px 520px at 50% -15%, #eaf4f1 0%, #ffffff 62%);
}
.hero h1 { max-width: 17ch; margin-inline: auto; }
.hero .lead { margin: 0 auto 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 1.5rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: clamp(3rem, 7vw, 5rem); }
.badge {
  font-size: .78rem; font-weight: 500; color: var(--c-muted);
  border: 1px solid var(--c-border); border-radius: 980px; padding: .32rem .95rem;
}
/* Product cutouts floating on a soft gradient — Apple-style treatment */
.thumb--product {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 1rem;
  background: radial-gradient(120% 90% at 50% 0%, #f1f6f4 0%, #ffffff 72%);
}
.thumb--product img { max-width: 92%; max-height: 92%; width: auto; height: auto; object-fit: contain; }
.section--dark .thumb--product { background: radial-gradient(120% 90% at 50% 0%, #1b1d20 0%, #08090a 72%); }
/* Full-bleed photo tile on a dark ground (official studio shots) */
.thumb--photo { aspect-ratio: 4 / 3; overflow: hidden; background: #08090a; }
.thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid transparent; }
.hero__visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.hero__visual--float {
  background: radial-gradient(120% 90% at 50% 0%, #eef4f2 0%, #ffffff 74%);
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 2.5rem);
}
.hero__visual--float img { aspect-ratio: auto; object-fit: contain; width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(15, 23, 42, .13)); }

/* ===== Grids / tiles ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex; flex-direction: column;
}
.section--soft .card { background: #fff; }
.section--dark .card { background: #111214; border-color: rgba(255, 255, 255, .12); }
.card p { color: var(--c-muted); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15, 110, 86, .1); color: var(--c-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 1.1rem;
}

/* Product tile (Apple-style product card) */
.tile {
  background: var(--c-bg-soft); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--c-border);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.section--dark .tile { background: #111214; border-color: rgba(255, 255, 255, .12); }
@media (hover: hover) { .tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .08); } }
.tile .thumb { background: #fff; }
.tile .thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.section--dark .tile .thumb { background: #0b0c0e; }
.tile .tile__body { padding: 1.6rem clamp(1.25rem, 2.5vw, 1.9rem) 1.9rem; }
.tile h3 { margin-bottom: .45rem; }
.tile p { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }
.tile .meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; }

.tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(15, 110, 86, .1); color: var(--c-accent-dark);
  border-radius: 6px; padding: .16rem .5rem;
}
.section--dark .tag { background: rgba(93, 202, 165, .16); color: #9fe1cb; }

/* Facility photo tiles with zoom */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.gallery figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--c-bg-soft);
}
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.05); } }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
  font-size: .85rem; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
}
@media (max-width: 620px) { .gallery { grid-template-columns: 1fr; } }

/* Showcase split (image + copy alternating) */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center; margin-bottom: clamp(3rem, 8vw, 6rem);
}
.showcase:last-child { margin-bottom: 0; }
.showcase__media {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--c-bg-soft); border: 1px solid var(--c-border);
}
.showcase__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.showcase--flip .showcase__media { order: 2; }
.showcase ul { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.showcase li { padding: .55rem 0 .55rem 1.6rem; position: relative; color: var(--c-muted); font-size: .95rem; }
.showcase li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent);
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--flip .showcase__media { order: 0; }
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.step { border-top: 2px solid var(--c-accent); padding-top: 1.1rem; }
.step span {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  color: var(--c-accent); margin-bottom: .5rem;
}
.step p { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ===== News ===== */
.news-item { display: flex; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--c-border); }
.news-item:last-child { border-bottom: none; }
.news-item time { flex: 0 0 110px; font-size: .8rem; color: var(--c-muted); letter-spacing: .06em; text-transform: uppercase; padding-top: .3rem; }
.news-item h3 { margin-bottom: .3rem; }
.news-item h3 a { color: var(--c-ink); }
.news-item h3 a:hover { color: var(--c-accent); }
.news-item p { color: var(--c-muted); font-size: .95rem; margin-bottom: 0; }
@media (max-width: 620px) { .news-item { flex-direction: column; gap: .4rem; } }

/* ===== Spec tables ===== */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--c-border); }
.spec-table th { width: 45%; font-weight: 500; color: var(--c-text); }
.spec-table td { color: var(--c-muted); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* ===== Forms ===== */
.form { max-width: 620px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .8rem; font-weight: 500; margin-bottom: .35rem; color: var(--c-ink); }
input, select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--c-text);
  padding: .7rem .85rem; border: 1px solid var(--c-border); border-radius: 12px;
  background: #fff; transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--c-accent); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--c-muted); }
.form-status { margin-top: 1rem; font-weight: 500; display: none; }
.form-status.is-ok { display: block; color: #0f6e56; }
.form-status.is-err { display: block; color: #a32d2d; }

/* ===== Notice ===== */
.notice {
  background: #fdf6e3; border: 1px solid #fac775; border-radius: 14px;
  padding: 1rem 1.2rem; font-size: .88rem; color: #633806; margin: 2rem 0 0;
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  background: radial-gradient(900px 420px at 50% -20%, #eaf4f1 0%, #ffffff 65%);
}
.page-hero h1 { max-width: 20ch; margin-inline: auto; }
.page-hero p { max-width: 60ch; margin-inline: auto; }

/* ===== Footer ===== */
.site-footer { background: #f5f5f7; color: var(--c-muted); margin-top: 0; }
.site-footer a { color: var(--c-text); }
.site-footer h3 { color: var(--c-ink); font-size: .85rem; font-weight: 600; margin-bottom: .8rem; }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; font-size: .82rem; }
.site-footer p { font-size: .82rem; max-width: 46ch; }
.site-footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, .1); padding: 1.2rem 0 2rem;
  font-size: .78rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ===== Utilities & motion ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3.5rem); }
.mb-md { margin-bottom: 1.2rem; }
.stack > * + * { margin-top: 1.2rem; }
.contact-grid { align-items: start; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile:hover { transform: none; }
}

/* ===== Product galleries ===== */
.pgal__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}
.pgal__thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid var(--c-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.pgal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgal__thumb:hover { transform: translateY(-2px); }
.pgal__thumb.is-active { border-color: var(--c-accent); }
.section--dark .pgal__thumb { background: #fff; }

.pgal__main { cursor: zoom-in; }

/* ===== In-place gallery switching (side clicks) ===== */
.pgal__main { position: relative; overflow: hidden; }

/* stacked crossfade layers */
.thumb--product .pgal__layer {
  position: absolute; inset: 0; margin: auto;
  width: 92%; height: 92%;
  object-fit: contain;
  opacity: 0; transform: scale(.988);
  transition: opacity .45s cubic-bezier(.2, .7, .2, 1), transform .45s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
  will-change: opacity, transform;
}
.thumb--product .pgal__layer.is-on { opacity: 1; transform: none; }

/* invisible side zones with a soft chevron on hover */
.pgal__nav {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  width: 24%; max-width: 92px;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity .25s ease;
}
.pgal__nav--prev { left: 0; }
.pgal__nav--next { right: 0; }
.pgal__nav::after {
  content: "‹";
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
  font-size: 24px; line-height: 1; color: var(--c-ink);
  transition: background .2s ease, transform .2s ease;
}
.pgal__nav--next::after { content: "›"; }
.pgal__nav:hover::after { background: #ffffff; transform: scale(1.06); }
.pgal__main--multi:hover .pgal__nav { opacity: 1; }
.pgal__nav:active::after { transform: scale(.94); }
.pgal__nav:focus-visible { outline: 3px solid #378add; outline-offset: -8px; border-radius: 14px; }
/* touch screens: keep the arrows visible, they are the only affordance */
@media (hover: none) {
  .pgal__main--multi .pgal__nav { opacity: .9; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 10, .93);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: min(1100px, 88vw);
  max-height: 84vh;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.lightbox__btn {
  position: absolute;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  letter-spacing: .02em;
}
@media (prefers-reduced-motion: reduce) {
  .pgal__thumb, .lightbox__btn { transition: none; }
}

/* ===== Tile links & anchor scroll offset ===== */
.tile-link { display: block; color: inherit; text-decoration: none; }
[id^="p-"] { scroll-margin-top: 96px; }

/* ===== Stats band ===== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.stat { border-top: 2px solid var(--c-accent); padding-top: 1rem; }
.stat b { display: block; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.03em; color: var(--c-ink); line-height: 1.05; }
.stat span { display: block; margin-top: .4rem; font-size: .82rem; color: var(--c-muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ===== Model matrix (scrollable spec table) ===== */
.table-scroll {
  overflow-x: auto; border: 1px solid var(--c-border); border-radius: 16px;
  background: #fff; -webkit-overflow-scrolling: touch;
}
.matrix { width: 100%; min-width: 780px; border-collapse: collapse; font-size: .82rem; }
.matrix caption { text-align: left; padding: 1rem 1.2rem .2rem; font-size: .8rem; color: var(--c-muted); }
.matrix th, .matrix td {
  padding: .58rem .9rem; text-align: left; border-bottom: 1px solid var(--c-border); white-space: nowrap;
}
.matrix thead th {
  background: #f5f5f7; font-weight: 600; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--c-text);
}
.matrix tbody tr:last-child td { border-bottom: none; }
.matrix td.num { font-variant-numeric: tabular-nums; }

/* ===== Feature / spec cards ===== */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }
.feat h3 { font-size: 1.02rem; }
.feat p { font-size: .92rem; color: var(--c-muted); margin-bottom: 0; }
.feat .tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }

/* ===== Definition list (spec pairs) ===== */
.deflist { margin: 0; }
.deflist div { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid var(--c-border); font-size: .9rem; }
.deflist div:last-child { border-bottom: none; }
.deflist dt { color: var(--c-muted); }
.deflist dd { margin: 0; text-align: right; color: var(--c-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .deflist div { flex-direction: column; gap: .15rem; } .deflist dd { text-align: left; } }
.matrix--fit { min-width: 0; }

/* ===== Pipeline strip (planned product line) ===== */
.pipeline {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.4rem);
  background: #fff; border: 1px dashed rgba(15, 110, 86, .45);
  border-radius: var(--radius);
}
.pipeline h3 { margin-bottom: .3rem; }
.pipeline p { color: var(--c-muted); font-size: .92rem; margin-bottom: 0; }
.pipeline .eyebrow { margin-bottom: .4rem; }
@media (max-width: 620px) { .pipeline .btn { width: 100%; text-align: center; } }

/* ===== Pull quote ===== */
.statement {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 34ch; text-align: center;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.35; letter-spacing: -.02em;
  color: var(--c-ink);
}

/* ===== Simple list inside cards ===== */
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li { padding: .5rem 0; border-bottom: 1px solid var(--c-border); font-size: .95rem; }
.plainlist li:last-child { border-bottom: none; }

/* ===== Certificate marquee (products page) ===== */
.cert-marquee {
  overflow: hidden;
  margin-top: var(--space-lg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.cert-marquee__track {
  display: flex;
  width: max-content;
  animation: certscroll 52s linear infinite;
}
.cert-marquee:hover .cert-marquee__track,
.cert-marquee:focus-within .cert-marquee__track { animation-play-state: paused; }
@keyframes certscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.cert-marquee__item {
  flex: 0 0 auto;
  width: 168px;
  margin-right: 20px;
  text-decoration: none;
  color: var(--c-muted);
  font-size: .74rem;
  text-align: center;
}
.cert-marquee__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
}
.cert-marquee__item span { display: block; margin-top: .45rem; }
.cert-marquee__item:hover img {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
@media (prefers-reduced-motion: reduce) {
  .cert-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .cert-marquee__track { animation: none; }
}

/* ===== Marquee subhead (homepage patents strip) ===== */
.marquee-subhead { margin-top: var(--space-xl, 3rem); }
.marquee-subhead h3 { margin-top: .35rem; font-size: 1.35rem; }

/* ===== Patent certificate thumbnail matrix (certificates page) ===== */
.ptgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.4rem 1rem;
  margin-top: var(--space-lg);
}
.ptgrid__item {
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: .78rem;
  line-height: 1.35;
}
.ptgrid__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
}
.ptgrid__type {
  display: block;
  margin-top: .55rem;
  font-size: .64rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.ptgrid__title { display: block; margin-top: .25rem; color: var(--c-text); font-weight: 500; }
.ptgrid__item:hover img,
.ptgrid__item:focus-visible img {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .16);
}
.catalog-sub { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ===== Certificate detail page ===== */
.certblock {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: 96px;
}
.certblock:last-of-type { border-bottom: none; }
.certblock__thumb {
  position: relative;
  display: block;
  align-self: start;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .10);
}
.certblock__thumb img { display: block; width: 100%; height: auto; }
.certblock__open {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .5rem;
  text-align: center;
  font-size: .78rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(15, 23, 42, .82));
  opacity: 0;
  transition: opacity .25s;
}
.certblock__thumb:hover .certblock__open { opacity: 1; }
.certblock__body .eyebrow { margin-bottom: .5rem; }
.certblock__body h2 { margin-bottom: 1rem; letter-spacing: -.02em; }
.certpages {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 840px;
}
.certpages__page {
  margin: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  overflow: hidden;
}
.certpages__page img { display: block; width: 100%; height: auto; }
.certpages__page figcaption {
  font-size: .75rem;
  color: var(--c-muted);
  padding: .45rem .85rem;
  border-top: 1px solid var(--c-border);
  background: #fafbfc;
}
@media (max-width: 760px) {
  .certblock { grid-template-columns: 1fr; }
  .certblock__thumb { max-width: 240px; }
}

/* ===== Facility marquees (homepage) ===== */
.facility-blocks { display: grid; gap: clamp(2rem, 5vw, 3rem); margin-top: var(--space-lg); }
.fac-block__head { margin-bottom: 1rem; }
.fac-block__head h3 { letter-spacing: -.02em; margin-bottom: .3rem; }
.fac-block__head p { color: var(--c-muted); font-size: .95rem; margin: 0; }
.fac-marquee {
  overflow: hidden;
  border-radius: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.fac-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 0;
  animation: facscroll var(--dur, 28s) linear infinite;
}
.fac-marquee:hover .fac-marquee__track,
.fac-marquee:focus-within .fac-marquee__track { animation-play-state: paused; }
@keyframes facscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 7px)); }
}
.fac-marquee__track img {
  width: clamp(300px, 32vw, 420px);
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .10);
  cursor: zoom-in;
  flex: 0 0 auto;
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s;
}
.fac-marquee__track img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}
@media (prefers-reduced-motion: reduce) {
  .fac-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .fac-marquee__track { animation: none; }
}
