/* Final premium pass: navigation, multilingual hero, shared catalogues and light mode. */

/* Navigation: one measured instrument bar with a clear action hierarchy. */
.site-nav {
  width:min(1380px,calc(100% - 28px));
  border-radius:16px;
  border-color:rgba(218,226,222,.16);
  background:linear-gradient(180deg,rgba(4,16,21,.88),rgba(4,16,21,.7));
  box-shadow:0 20px 55px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.055);
}
.site-nav .container { grid-template-columns:minmax(210px,1fr) auto minmax(285px,1fr); gap:18px; padding:11px 13px 11px 16px; }
.logo { gap:12px; }
.logo-mark { width:36px!important; height:36px!important; }
.logo-wordmark { gap:3px; }
.logo-wordmark strong,.logo-wordmark i { font-size:19px; letter-spacing:-.055em; }
.logo-wordmark small { color:#87999d; font-size:6.5px; letter-spacing:.19em; }
.nav-links.nav-pill {
  gap:4px;
  padding:4px;
  border-color:rgba(194,208,213,.13);
  border-radius:12px;
  background:rgba(255,255,255,.027);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.nav-links a {
  padding:8px 12px;
  color:#aebdc0;
  border-radius:8px;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:550;
  letter-spacing:.012em;
  white-space:nowrap;
}
.nav-links a::after { right:11px; bottom:4px; left:11px; background:linear-gradient(90deg,var(--pf-teal-soft),var(--pf-brass-soft)); }
.nav-links a:hover { color:#f3f2ec; background:rgba(255,255,255,.035); }
.nav-right { gap:8px; }
.lang-switch { gap:2px; padding:3px; border:1px solid rgba(194,208,213,.12); border-radius:10px; background:rgba(255,255,255,.022); }
.lang-switch button { min-width:29px; padding:6px 7px; border-radius:7px; font-size:9px; letter-spacing:.06em; }
.lang-switch button[aria-pressed="true"] { color:#f1d599; border-color:rgba(223,193,132,.24); background:rgba(195,154,82,.1); }
.theme-toggle { min-height:32px; border-radius:10px; }
.site-nav .btn--primary { min-height:38px; padding:9px 16px; border-radius:10px; font-size:11px; letter-spacing:.01em; }

/* Hero copy: an editorial engineering caption, never a floating random card. */
.hero-stories .hero-summary {
  position:relative;
  max-width:520px;
  margin-top:20px;
  padding:2px 0 2px 18px;
  color:#dce6e4;
  font-size:clamp(.94rem,1.05vw,1.02rem);
  font-weight:450;
  line-height:1.58;
  text-wrap:balance;
}
.hero-stories .hero-summary::before {
  content:"";
  position:absolute;
  top:2px;
  bottom:2px;
  left:0;
  width:2px;
  background:linear-gradient(180deg,var(--hero-warm),var(--hero-flow));
  box-shadow:0 0 18px rgba(155,198,188,.18);
}
.hero-scene-context {
  width:max-content;
  max-width:100%;
  margin-top:19px;
  padding:9px 13px 9px 10px;
  border:1px solid rgba(185,210,204,.15);
  border-radius:10px;
  background:rgba(4,18,22,.32);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.hero-scene-context__index { min-width:44px; }
.hero-scene-context strong { color:#eef2ed; font-family:var(--font-body); font-size:12px; font-weight:650; }
.hero-scene-context small { color:#a7b9b7; font-size:10px; }

/* Every component card now visibly opens the same shared product workspace. */
.catalogue-explorer-trigger { cursor:pointer; }
.catalogue-explorer-trigger .showcase-media { position:relative; }
.catalogue-explorer-trigger:not(.valve-explorer-trigger) .valve-explorer-pulse { width:7px; height:7px; opacity:.72; }
.catalogue-explorer-trigger .valve-explorer-hint { font-size:clamp(7px,.58vw,9px); }
.catalogue-explorer-trigger:hover .showcase-media img,
.catalogue-explorer-trigger:focus-visible .showcase-media img { transform:scale(1.035); }
.valve-explorer:not(.is-lineup) .valve-stage-lineup {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transform:scale(1.035)!important;
  filter:saturate(.68) contrast(1.08) brightness(.72);
}
.valve-explorer:not(.is-lineup) .valve-stage::before { content:"PRODUCT FAMILY WORKSPACE"; }
.valve-explorer:not(.is-lineup) .valve-stage::after {
  content:"SELECT A FAMILY BELOW";
  right:auto;
  bottom:88px;
  left:22px;
  top:auto;
  color:rgba(235,241,236,.72);
}
.valve-explorer:not(.is-lineup) .valve-stage { box-shadow:inset 0 -180px 150px rgba(2,13,18,.82); }
.valve-explorer.is-lineup .valve-stage-lineup { object-fit:contain; }
.valve-explorer-head h3 { text-wrap:balance; }

/* Multilingual typography: preserve hierarchy instead of inheriting Latin tracking. */
html[lang="bn"] :is(h1,h2,h3,h4,.nav-links a,.btn,.hero-scene-context strong) { font-family:var(--font-bn),sans-serif; letter-spacing:0; }
html[lang="bn"] .nav-links a { font-size:12px; }
html[lang="bn"] .hero-headline-text { line-height:1.06; }
html[lang="zh"] body { font-family:"PingFang SC","Microsoft YaHei",var(--font-body),sans-serif; }
html[lang="zh"] :is(h1,h2,h3,h4,.nav-links a,.btn) { letter-spacing:-.015em; }
html[lang="zh"] .nav-links a { font-size:12px; }

/* Light mode: warm technical paper, firm ink and consistent cards. */
html[data-theme="light"] { color-scheme:light; }
html[data-theme="light"] body { color:#10262b; background:#ecece6; }
html[data-theme="light"] body::after { opacity:.018; mix-blend-mode:multiply; }
html[data-theme="light"] .site-nav.is-compact {
  background:rgba(247,246,240,.94);
  border-color:rgba(18,53,59,.17);
  box-shadow:0 16px 45px rgba(18,45,50,.12),inset 0 1px 0 #fff;
}
html[data-theme="light"] .site-nav.is-compact .nav-links.nav-pill,
html[data-theme="light"] .site-nav.is-compact .lang-switch { border-color:rgba(18,53,59,.13); background:rgba(12,43,48,.025); }
html[data-theme="light"] .site-nav.is-compact .nav-links a { color:#40575b; }
html[data-theme="light"] .site-nav.is-compact .nav-links a:hover { color:#0a252a; background:rgba(21,63,67,.055); }
html[data-theme="light"] .site-nav.is-compact .lang-switch button[aria-pressed="true"] { color:#78551e; background:rgba(142,101,31,.08); }
html[data-theme="light"] .hero-stories .hero-summary {
  color:#29464b;
  text-shadow:0 1px 0 rgba(255,255,255,.4);
}
html[data-theme="light"] .hero-scene-context {
  border-color:rgba(16,54,59,.18);
  background:rgba(243,244,239,.7);
  box-shadow:0 10px 28px rgba(25,52,56,.09);
}
html[data-theme="light"] .hero-scene-context__index { color:#8b6728; }
html[data-theme="light"] .hero-scene-context strong { color:#173438; }
html[data-theme="light"] .hero-scene-context small { color:#526b6f; }
html[data-theme="light"] .source-section { background-color:#eeeee8; }
html[data-theme="light"] .showcase-card { background:#fbfaf5; border-color:rgba(15,54,60,.16); box-shadow:0 18px 42px rgba(25,54,58,.1),inset 0 1px 0 #fff; }
html[data-theme="light"] .showcase-body { background:linear-gradient(150deg,#12323a,#0a242d); }
html[data-theme="light"] .valve-explorer {
  border-color:rgba(27,75,78,.19);
  background:radial-gradient(circle at 88% 8%,color-mix(in srgb,var(--valve-accent) 13%,transparent),transparent 30%),linear-gradient(145deg,#f8f7f1,#e3e9e4);
  box-shadow:0 30px 80px rgba(28,60,64,.14),inset 0 1px 0 #fff;
}
html[data-theme="light"] .valve-stage { border-color:rgba(25,66,70,.16); background:#dce5e1; }
html[data-theme="light"] .valve-spec-panel { border-color:rgba(25,66,70,.16); background:linear-gradient(110deg,rgba(255,255,255,.78),rgba(225,233,228,.82)); }
html[data-theme="light"] .valve-spec-copy h4,
html[data-theme="light"] .valve-explorer-head h3 { color:#0b252a; }
html[data-theme="light"] .valve-spec-copy p,
html[data-theme="light"] .valve-explorer-head p { color:#4b6265; }
html[data-theme="light"] .valve-spec-grid dt { color:#62777a; }
html[data-theme="light"] .valve-spec-grid dd { color:#173237; }
html[data-theme="light"] .valve-catalogue-button { color:#173237; background:rgba(255,255,255,.45); }
html[data-theme="light"] .valve-catalogue-button small { color:#607477; }
html[data-theme="light"] .valve-source-note { color:#526b6e; }
html[data-theme="light"] .toolkit-section { color:#10262b; background-color:#e8e9e4; }
html[data-theme="light"] .toolkit-heading h2 { color:#10262b; }
html[data-theme="light"] .toolkit-heading p,.service-guide-foot p { color:#4c6366; }
html[data-theme="light"] .service-guide { border-color:rgba(18,58,63,.16); background:rgba(250,249,244,.72); box-shadow:0 26px 70px rgba(25,55,59,.1); }
html[data-theme="light"] .service-guide-nav button { color:#1e383d; }
html[data-theme="light"] .service-guide-nav li { border-color:rgba(18,58,63,.12); }
html[data-theme="light"] .service-guide-nav small { color:#647a7d; }

/* Performance: animate only what is visible and avoid permanent GPU layers. */
.hero-story { will-change:auto; }
.hero-story.is-active { will-change:transform,opacity; }
.reveal.is-visible { will-change:auto; }
body::after { opacity:.022; }
html { scroll-padding-top:88px; }

@media (max-width:1180px) {
  .site-nav .container { grid-template-columns:auto 1fr auto; }
  .nav-links.nav-pill { gap:1px; }
  .nav-links a { padding-inline:8px; font-size:10px; }
  .logo-wordmark small { display:none; }
}
@media (max-width:900px) {
  .site-nav { width:calc(100% - 16px); }
  .site-nav .container { padding:9px 10px; }
  .hero-stories .hero-summary { padding-left:14px; }
  .catalogue-explorer-trigger .valve-explorer-hint { font-size:8px; }
}
@media (max-width:700px) {
  .hero-scene-context { width:100%; }
  .valve-explorer:not(.is-lineup) .valve-stage-lineup { height:100%; object-fit:cover; }
  .valve-explorer:not(.is-lineup) .valve-stage::after { bottom:100px; }
}
@media (prefers-reduced-motion:reduce) {
  .valve-explorer-pulse { animation:none!important; }
}
