/*
Theme Name: Ying Group 2026
Theme URI: https://www.ying-international.com/
Author: Ying Group
Description: A clean, editable industrial B2B WordPress theme for Ying Group.
Version: 0.40.17
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: ying-group-2026
*/

:root {
  --ink: #123538;
  --ink-soft: #586f70;
  --navy: #082d31;
  --blue: #087a78;
  --cyan: #2ca7a3;
  --line: #d4e3e1;
  --mist: #f0f6f5;
  --white: #ffffff;
  --content: 1180px;
  --radius: 999px;
  --panel-radius: 18px;
  --shadow: 0 24px 70px rgba(8, 62, 64, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(24, 167, 200, 0.38); outline-offset: 3px; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  background: var(--white);
  z-index: 10000;
}
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--mist { background: var(--mist); }
.section--navy { color: var(--white); background: var(--navy); }
.section--navy h2,
.section--navy h3 { color: var(--white); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { max-width: 680px; margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; }
.section-heading p { max-width: 540px; margin: 0; color: var(--ink-soft); }
.section--navy .section-heading p { color: #aec0d0; }
.kicker { margin: 0 0 16px; color: var(--blue); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.section--navy .kicker { color: #70d6eb; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); background: #064f98; border-color: #064f98; }
.button--ghost { color: var(--ink); background: transparent; border-color: #aab7c3; }
.button--ghost:hover { color: var(--blue); background: var(--white); border-color: var(--blue); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--blue); font-weight: 700; }
.text-link::after { content: "\2192"; transition: transform 180ms ease; }
.text-link:hover::after { transform: translateX(4px); }

.site-header-shell { position: relative; z-index: 50; min-height: 76px; }
.site-header { position: relative; isolation: isolate; width: 100%; border-bottom: 1px solid rgba(212, 227, 225, 0.9); background: rgba(255, 255, 255, 0.97); }
.site-header.is-floating {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: none;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(212, 227, 225, 0.9);
  border-radius: 0;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 6px 18px rgba(9, 66, 66, 0.08);
  animation: none;
}
.header-float-trigger { position: absolute; top: 1px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); align-items: center; gap: 24px; }
.site-header.is-floating .header-inner { min-height: 68px; }
.site-brand { display: inline-flex; min-width: 0; align-items: center; justify-self: start; color: var(--navy); }
.brand-logo { width: auto; height: 62px; object-fit: contain; }
.site-header .brand-logo { mix-blend-mode: multiply; }
.brand-logo--footer { height: 76px; border-radius: 10px; }
.primary-navigation { justify-self: center; }
.primary-navigation ul { list-style: none; margin: 0; padding: 0; }
.primary-navigation > div > ul { display: flex; align-items: center; gap: 26px; }
.primary-navigation li { position: relative; }
.primary-navigation a { display: flex; align-items: center; min-height: 76px; color: #244648; font-size: 0.88rem; font-weight: 650; white-space: nowrap; }
.site-header.is-floating .primary-navigation > div > ul > li > a { min-height: 68px; }
.primary-navigation > div > ul > li > a::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; transform: scaleX(0); transform-origin: center; border-radius: 2px; background: var(--blue); content: ""; transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.primary-navigation > div > ul > li > a:hover,
.primary-navigation > div > ul > li.current-menu-item > a,
.primary-navigation > div > ul > li.current-menu-ancestor > a { color: var(--blue); }
.primary-navigation > div > ul > li > a:hover::after,
.primary-navigation > div > ul > li.current-menu-item > a::after,
.primary-navigation > div > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-navigation .sub-menu {
  position: absolute;
  left: -18px;
  top: calc(100% - 1px);
  width: 340px;
  max-height: calc(100vh - 110px);
  padding: 12px;
  visibility: hidden;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(8px);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.primary-navigation .sub-menu a { min-height: 0; padding: 10px 9px; border-radius: 3px; line-height: 1.35; white-space: normal; }
.primary-navigation .sub-menu a:hover { color: var(--blue); background: var(--mist); }
.header-cta { min-width: 156px; min-height: 42px; padding-inline: 18px; justify-self: end; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; color: var(--navy); background: transparent; }
.menu-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }

@keyframes header-arrive {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.hero { overflow: hidden; color: var(--white); background: var(--navy); }
.hero-grid { min-height: min(760px, calc(100vh - 76px)); display: grid; grid-template-columns: 1.06fr 0.94fr; align-items: center; gap: 68px; padding: 72px 0; }
.hero-copy h1 { max-width: 740px; margin: 0; color: var(--white); font-size: clamp(3rem, 6.2vw, 5.7rem); line-height: 0.98; letter-spacing: -0.055em; }
.hero-copy p:not(.kicker) { max-width: 640px; margin: 24px 0 0; color: #bfd0df; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .button--ghost { color: var(--white); border-color: #567086; }
.hero .button--ghost:hover { color: var(--navy); }
.process-visual { position: relative; min-height: 450px; padding: 54px 42px; border: 1px solid rgba(174,192,208,0.22); background: #0b2945; box-shadow: 26px 26px 0 rgba(24,167,200,0.10); }
.process-visual::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(112,214,235,0.15); pointer-events: none; }
.process-label { position: relative; z-index: 1; margin-bottom: 56px; color: #70d6eb; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.process-line { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; gap: 12px; margin-bottom: 30px; }
.process-step { padding: 18px; border: 1px solid rgba(191,208,223,0.25); color: var(--white); background: rgba(255,255,255,0.03); font-weight: 700; }
.process-line i { height: 1px; background: var(--cyan); }
.process-caption { position: relative; z-index: 1; margin: 54px 0 0; color: #9eb4c7; font-size: 0.84rem; }
.capability-band { border-bottom: 1px solid var(--line); background: var(--white); }
.capability-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.capability-list li { padding: 22px 28px; border-left: 1px solid var(--line); color: #415568; font-size: 0.82rem; font-weight: 700; text-align: center; letter-spacing: 0.05em; text-transform: uppercase; }
.capability-list li:last-child { border-right: 1px solid var(--line); }

.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: start; }
.about-grid h2 { max-width: 620px; margin: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.about-copy { padding-top: 38px; }
.about-copy p { max-width: 660px; margin: 0 0 18px; color: var(--ink-soft); }
.about-copy .text-link { margin-top: 10px; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 76px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-grid div { min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px 24px; border-right: 1px solid var(--line); }
.fact-grid div:first-child { border-left: 1px solid var(--line); }
.fact-grid strong { color: var(--blue); font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.fact-grid span { max-width: 180px; color: var(--ink-soft); font-size: 0.84rem; font-weight: 650; }

.product-directory { border-top: 1px solid #c9d4dd; }
.product-row { display: grid; grid-template-columns: 0.7fr 1fr auto; gap: 44px; align-items: center; padding: 31px 0; border-bottom: 1px solid #c9d4dd; }
.product-row h3 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.12; letter-spacing: -0.025em; }
.product-row p { max-width: 600px; margin: 0; color: var(--ink-soft); }

.technology-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 20px; }
.technology-panel { min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; border: 1px solid var(--line); background: var(--mist); }
.technology-panel--primary { min-height: 520px; color: var(--white); background: var(--navy); }
.technology-index { margin-bottom: auto; color: var(--blue); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.technology-panel--primary .technology-index,
.technology-panel--primary .text-link { color: #70d6eb; }
.technology-panel h3 { max-width: 560px; margin: 0 0 16px; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.technology-panel--primary h3 { color: var(--white); }
.technology-panel p { max-width: 590px; margin: 0 0 24px; color: var(--ink-soft); }
.technology-panel--primary p { color: #b7c9d8; }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.team-grid h2 { max-width: 690px; margin: 0; color: var(--white); font-size: clamp(2.3rem, 4.7vw, 4.2rem); line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.team-list { border-top: 1px solid #345069; }
.team-list span { display: block; padding: 22px 0; border-bottom: 1px solid #345069; color: #d4e0e9; font-size: 1.05rem; font-weight: 650; }

.solution-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.solution-feature { min-height: 510px; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; color: var(--white); background: var(--navy); }
.solution-feature h3 { max-width: 470px; margin: 0 0 16px; font-size: clamp(2rem, 3.2vw, 3.4rem); line-height: 1.06; letter-spacing: -0.04em; }
.solution-feature p { max-width: 520px; color: #b9cada; }
.solution-feature .text-link { color: #70d6eb; }
.solution-stack { display: grid; gap: 20px; }
.solution-item { min-height: 245px; padding: 34px; border: 1px solid var(--line); background: var(--white); }
.solution-item h3 { margin: 0 0 14px; font-size: 1.55rem; line-height: 1.2; }
.solution-item p { color: var(--ink-soft); }

.system-list { border-top: 1px solid #345069; }
.system-row { display: grid; grid-template-columns: 0.7fr 1fr auto; gap: 40px; align-items: center; padding: 32px 0; border-bottom: 1px solid #345069; }
.system-row h3 { margin: 0; font-size: clamp(1.45rem, 2.5vw, 2.2rem); letter-spacing: -0.02em; }
.system-row p { margin: 0; color: #aec0d0; }
.system-row .text-link { color: #70d6eb; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow article { min-height: 230px; padding: 32px 26px; border-right: 1px solid var(--line); }
.workflow article:last-child { border-right: 0; }
.workflow small { color: var(--blue); font-weight: 800; }
.workflow h3 { margin: 42px 0 12px; font-size: 1.22rem; }
.workflow p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

.news-list { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.news-card { padding: 30px; border: 1px solid var(--line); background: var(--white); }
.news-card:first-child { grid-row: span 2; min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; }
.news-card time { color: var(--ink-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.news-card h3 { margin: 12px 0 18px; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.18; }
.news-card:first-child h3 { font-size: clamp(2rem, 3vw, 3rem); }

.global-cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 58px; color: var(--white); background: var(--blue); }
.global-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.07; letter-spacing: -0.04em; }
.global-cta p { max-width: 720px; margin: 16px 0 0; color: #d9edff; }
.global-cta .button { color: var(--navy); background: var(--white); border-color: var(--white); }

.page-hero { padding: 86px 0 64px; color: var(--white); background: var(--navy); }
.breadcrumbs { margin-bottom: 30px; color: #9fb5c8; font-size: 0.82rem; }
.page-hero h1 { max-width: 920px; margin: 0; color: var(--white); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.05em; }
.page-hero p { max-width: 700px; margin: 22px 0 0; color: #bfd0df; }
.entry-content { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 74px 0 100px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.4em; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; letter-spacing: -0.03em; }
.entry-content h3 { margin-top: 2em; font-size: 1.45rem; }
.entry-content p, .entry-content li { color: #344b5f; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content .wp-block-group.alignwide { width: min(1100px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.empty-state { padding: 40px; border: 1px solid var(--line); background: var(--mist); }

.product-catalog-hero { padding-bottom: 76px; }
.product-catalog-hero .kicker { margin-bottom: 20px; color: #70d6d2; }
.product-catalog-hero h1 { max-width: 1040px; font-size: clamp(2.7rem, 5.4vw, 4.7rem); }
.product-catalog-section { padding: 72px 0 110px; background: var(--mist); }
.product-catalog-intro { max-width: 760px; margin: 0 0 46px; color: var(--ink-soft); font-size: 1.08rem; }
.product-catalog-intro > *:first-child { margin-top: 0; }
.product-catalog-list { border-top: 1px solid #a9c4c0; }
.product-catalog-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  min-height: 132px;
  padding: 24px 12px;
  border-bottom: 1px solid #a9c4c0;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}
.product-catalog-item:hover,
.product-catalog-item:focus-visible { padding-inline: 22px; color: var(--white); background: var(--navy); }
.product-catalog-number { color: var(--blue); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.12em; }
.product-catalog-item:hover .product-catalog-number,
.product-catalog-item:focus-visible .product-catalog-number { color: #70d6d2; }
.product-catalog-copy { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1.15fr); gap: 36px; align-items: center; }
.product-catalog-copy strong { max-width: 520px; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.16; letter-spacing: -0.025em; }
.product-catalog-copy small { max-width: 590px; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.55; }
.product-catalog-item:hover small,
.product-catalog-item:focus-visible small { color: #b9d0cd; }
.product-catalog-arrow { font-size: 1.35rem; transition: transform 180ms ease; }
.product-catalog-item:hover .product-catalog-arrow,
.product-catalog-item:focus-visible .product-catalog-arrow { transform: translate(3px, -3px); }

.site-footer { color: #c1d0dc; background: #051524; }
.footer-main { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 70px; padding: 74px 0 56px; }
.footer-brand p { max-width: 470px; color: #93a9ba; }
.footer-column h2 { margin: 0 0 16px; color: var(--white); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 8px 0; }
.footer-column a:hover { color: #70d6eb; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0; border-top: 1px solid #263b4d; color: #7890a2; font-size: 0.8rem; }

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .header-inner { grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); }
  .primary-navigation > div > ul { gap: 18px; }
  .hero-grid { gap: 36px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section-heading, .hero-grid, .about-grid, .technology-grid, .team-grid, .solution-layout, .news-list, .footer-main { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding: 70px 0; }
  .hero-copy h1 { max-width: 720px; }
  .process-visual { min-height: 360px; }
  .capability-list, .workflow { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .team-grid { gap: 36px; }
  .about-copy { padding-top: 0; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); margin-top: 54px; }
  .fact-grid div:nth-child(2) { border-right: 1px solid var(--line); }
  .fact-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .technology-panel, .technology-panel--primary { min-height: 400px; }
  .workflow article:nth-child(2) { border-right: 0; }
  .workflow article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .news-card:first-child { grid-row: auto; }
  .global-cta { grid-template-columns: 1fr; padding: 44px; }
  .footer-main { gap: 36px; }
  .product-catalog-copy { grid-template-columns: 1fr; gap: 10px; }

  .header-inner { grid-template-columns: 1fr auto; }
  .brand-logo { height: 58px; }
  .menu-toggle { display: block; grid-column: 2; justify-self: end; }
  .primary-navigation {
    position: fixed;
    inset: 76px 0 0;
    padding: 18px 20px 40px;
    visibility: hidden;
    overflow-y: auto;
    opacity: 0;
    background: var(--white);
    transition: opacity 160ms ease, visibility 160ms;
  }
  .nav-open .primary-navigation { visibility: visible; opacity: 1; }
  .primary-navigation > div > ul { display: block; }
  .primary-navigation a { min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .primary-navigation .sub-menu { position: static; width: auto; padding: 0 0 8px 18px; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; }
  body:not(.nav-open) .primary-navigation .sub-menu { visibility: hidden; opacity: 0; }
  .primary-navigation .sub-menu a { min-height: 44px; }
  .site-header.is-floating .primary-navigation {
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    max-height: calc(100dvh - 104px);
    border: 1px solid rgba(212, 227, 225, 0.95);
    border-radius: var(--panel-radius);
    background: rgba(249, 253, 252, 0.97);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .section { padding: 58px 0; }
  .section-heading { gap: 18px; margin-bottom: 32px; }
  .hero-grid { padding: 54px 0; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4.25rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .process-visual { min-height: 330px; padding: 38px 24px; box-shadow: none; }
  .process-line { grid-template-columns: 1fr 24px 1fr; gap: 8px; }
  .process-step { padding: 13px 10px; font-size: 0.83rem; }
  .capability-list { grid-template-columns: 1fr 1fr; }
  .capability-list li { padding: 16px 10px; }
  .solution-feature { min-height: 420px; padding: 28px; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact-grid div { min-height: 145px; padding: 22px 15px; }
  .fact-grid strong { font-size: 2.35rem; }
  .product-row { grid-template-columns: 1fr; gap: 10px; padding: 25px 0; }
  .technology-panel, .technology-panel--primary { min-height: 360px; padding: 28px; }
  .solution-item { min-height: 0; padding: 28px; }
  .system-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .workflow { grid-template-columns: 1fr; }
  .workflow article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow article:last-child { border-bottom: 0; }
  .workflow h3 { margin-top: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .global-cta { padding: 32px 26px; }
  .page-hero { padding: 62px 0 48px; }
  .entry-content { width: min(calc(100% - 28px), 860px); padding: 56px 0 74px; }
  .product-catalog-section { padding: 48px 0 76px; }
  .product-catalog-item { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; min-height: 0; padding: 22px 4px; }
  .product-catalog-item:hover,
  .product-catalog-item:focus-visible { padding-inline: 10px; }
  .product-catalog-copy strong { font-size: 1.18rem; }
  .product-catalog-copy small { font-size: 0.84rem; }
  .footer-bottom { flex-direction: column; }
  .site-header.is-floating { top: 0; width: 100%; }
  .site-header.is-floating .header-inner { min-height: 62px; }
  .site-header.is-floating .brand-logo { height: 50px; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-floating {
    background: rgba(249, 253, 252, 0.98);
    -webkit-backdrop-filter: none;
    backdrop-filter: 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; }
}

/* Homepage masthead integration: the matte brand bar belongs to the hero and
 * becomes a clean, full-width fixed bar after the visitor starts scrolling. */
body.home .site-header-shell {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 0;
}

body.home .site-header:not(.is-floating) {
  border-bottom-color: rgba(204, 224, 220, 0.72);
  background: rgba(239, 248, 246, 0.94);
  box-shadow: 0 8px 24px rgba(3, 34, 35, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.home .site-header:not(.is-floating) .header-inner {
  min-height: 76px;
}

body.home .header-float-trigger {
  top: calc(100dvh - 2px);
}

@media (prefers-reduced-transparency: reduce) {
  body.home .site-header:not(.is-floating) {
    background: #eff8f6;
  }
}

/* Compact masthead: the first home viewport is a full-width matte brand bar;
 * the existing IntersectionObserver fixes the same clean treatment to the top
 * after the first pixels of downward travel. */
body.home .site-header:not(.is-floating) {
  width: 100%;
  border-radius: 0;
}

body.home .site-header:not(.is-floating) .header-inner {
  width: min(calc(100% - 56px), 1760px);
  max-width: none;
  min-height: 72px;
  margin-inline: auto;
  padding-inline: 0;
}

body.home .site-header:not(.is-floating) .brand-logo {
  height: 46px;
  max-width: 170px;
}

body.home .site-header:not(.is-floating) .primary-navigation > div > ul {
  gap: clamp(16px, 2vw, 34px);
}

body.home .site-header:not(.is-floating) .primary-navigation a {
  min-height: 72px;
  font-size: .83rem;
}

body.home .site-header:not(.is-floating) .header-cta {
  min-width: 142px;
  min-height: 40px;
  font-size: .82rem;
}

/* Keep the shared header compact on product/editorial pages as well. */
.site-header .brand-logo {
  height: 46px;
  max-width: 170px;
}

.site-header.is-floating .brand-logo {
  height: 42px;
}

/* The sentinel sits at the top of the document. Once it leaves the viewport,
 * navigation.js applies .is-floating without a scroll-event layout loop. */
body.home .header-float-trigger {
  top: 1px;
}

/* The old footer was visually heavy. Reduce its vertical footprint while
 * keeping the same editable logo, copy, links and contact metadata. */
.site-footer .footer-main {
  gap: 48px;
  padding: 42px 0 30px;
}

.site-footer .footer-brand .site-brand {
  width: min(220px, 100%);
}

.site-footer .footer-brand .brand-logo--footer {
  width: 220px !important;
  max-width: 100%;
  height: auto !important;
  max-height: 64px;
  object-fit: contain;
}

.site-footer .footer-brand p {
  max-width: 390px;
  margin-top: 16px;
  font-size: .88rem;
  line-height: 1.5;
}

.site-footer .footer-column h2 {
  margin-bottom: 12px;
}

.site-footer .footer-column li {
  margin: 5px 0;
}

.site-footer .footer-bottom {
  padding: 15px 0;
  font-size: .74rem;
}

@media (max-width: 900px) {
  body.home .site-header:not(.is-floating) .header-inner {
    width: min(calc(100% - 32px), 720px);
  }

  body.home .site-header:not(.is-floating) .brand-logo,
  .site-header .brand-logo {
    height: 42px;
    max-width: 150px;
  }
}

@media (max-width: 620px) {
  .site-footer .footer-main {
    gap: 30px;
    padding: 34px 0 24px;
  }

  .site-footer .footer-brand .brand-logo--footer {
    width: 190px !important;
    max-height: 56px;
  }
}
