:root {
  --marine-navy: #0c2946;
  --marine-navy-deep: #071b2f;
  --marine-gold: #b9934f;
  --marine-warm-white: #f6f5f0;
  --marine-paper: #fbfaf6;
  --marine-muted: #66707b;
  --marine-line: rgba(12, 41, 70, 0.16);
  --marine-shadow: 0 18px 48px rgba(12, 41, 70, 0.12);
}

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

body {
  background: var(--marine-warm-white);
  color: var(--marine-navy);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

h1,
h2,
h3 {
  color: var(--marine-navy);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

a:hover,
a:focus-visible {
  color: var(--marine-navy-deep);
}

:focus-visible {
  outline: 2px solid var(--marine-gold);
  outline-offset: 3px;
}

img,
video,
figure,
table,
section,
article,
aside,
main,
nav,
header,
footer {
  max-width: 100%;
}

/* Editorial foundation */
.site-header,
.catalog-header {
  background: rgba(246, 245, 240, 0.97);
  border-bottom: 1px solid var(--marine-line);
  box-shadow: 0 6px 24px rgba(12, 41, 70, 0.07);
}

.site-header .main-nav a,
.catalog-header nav a {
  color: var(--marine-navy);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.catalog-header nav a:hover,
.catalog-header nav a:focus-visible {
  color: var(--marine-navy-deep);
}

.site-brand-logo,
.footer-logo,
.catalog-home-logo {
  background: transparent;
}

.eyebrow {
  color: var(--marine-gold);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.eyebrow.light {
  color: #d8b878;
}

.section,
.section-heading,
.industry-showcase-inner,
.capabilities-inner,
.engineering-proof,
.rfq-inner,
.cic-inner {
  min-width: 0;
}

.section-heading h2,
.showcase-heading h2,
.engineering-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  text-wrap: balance;
}

.section-heading p,
.showcase-heading p,
.engineering-proof p,
.rfq-copy p,
.cic-copy p {
  color: var(--marine-muted);
}

/* Real ship hero: refine, never replace the source media */
.hero.business-hero {
  min-height: min(88svh, 780px);
  background: var(--marine-navy-deep);
}

.hero.business-hero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 27, 47, 0.93) 0%, rgba(7, 27, 47, 0.76) 46%, rgba(7, 27, 47, 0.35) 100%);
}

.hero.business-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.hero.business-hero .hero-copy-block {
  max-width: 720px;
}

.hero.business-hero h1 {
  margin-bottom: 18px;
  color: var(--marine-warm-white);
  font-size: clamp(37px, 6.2vw, 64px);
  font-weight: 750;
  line-height: 1.05;
  text-wrap: balance;
}

.hero.business-hero .hero-intro {
  max-width: 580px;
  color: rgba(246, 245, 240, 0.82);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.hero.business-hero .eyebrow {
  color: #d8b878;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-scope-band,
.hero-trust-strip {
  background: var(--marine-navy);
  color: rgba(246, 245, 240, 0.78);
}

.hero-scope-inner span,
.hero-trust-inner p {
  min-width: 0;
}

.hero-scope-inner strong,
.hero-trust-inner strong {
  color: var(--marine-warm-white);
}

/* Search and result areas remain fully functional */
.product-finder,
.catalog-browser,
.catalog-brand-hero {
  background:
    linear-gradient(180deg, rgba(251, 250, 246, 0.96), rgba(246, 245, 240, 0.98)),
    var(--marine-warm-white);
}

.catalog-shell,
.catalog-results,
.result-grid,
.brand-route-grid,
.case-list,
.capability-list {
  min-width: 0;
}

.catalog-shell {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--marine-line);
  border-radius: 6px;
  box-shadow: var(--marine-shadow);
}

.catalog-controls,
.catalog-search input,
.catalog-field select,
.catalog-controls input,
.catalog-controls select {
  min-width: 0;
}

.catalog-search input,
.catalog-field select,
.catalog-controls input,
.catalog-controls select,
.catalog-browser-controls input {
  min-height: 50px;
  color: var(--marine-navy);
  background: #ffffff;
  border: 1px solid rgba(12, 41, 70, 0.22);
  border-radius: 3px;
}

.catalog-search input:focus-visible,
.catalog-field select:focus-visible,
.catalog-controls input:focus-visible,
.catalog-controls select:focus-visible,
.catalog-browser-controls input:focus-visible {
  border-color: var(--marine-gold);
}

.catalog-controls {
  background: rgba(246, 245, 240, 0.72);
  border: 1px solid var(--marine-line);
  border-radius: 5px;
}

.selection-bar,
.finder-status,
.result-meta,
.finder-status * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-grid,
.brand-route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.result-grid > *,
.brand-route-grid > *,
.product-card,
.case-row,
.brand-route-featured {
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--marine-line);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(12, 41, 70, 0.05);
}

.result-grid a,
.brand-route-grid a,
.product-card a {
  color: var(--marine-navy);
  font-weight: 700;
}

.result-more,
.engineering-link,
.text-link,
.brand-route-grid a:hover small,
.brand-route-grid a:focus-visible small {
  color: var(--marine-gold);
}

.brand-route-logo-wrap {
  min-height: 74px;
  background: #ffffff;
}

/* Brand catalog pages */
.catalog-page {
  background: var(--marine-warm-white);
}

.catalog-brand-hero {
  border-bottom: 1px solid var(--marine-line);
}

.catalog-breadcrumbs {
  color: var(--marine-muted);
}

.catalog-brand-heading {
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.catalog-brand-heading h1 {
  font-size: clamp(31px, 4.6vw, 50px);
  line-height: 1.07;
  text-wrap: balance;
}

.catalog-brand-heading > div:first-child > p:last-child {
  max-width: 700px;
  color: var(--marine-muted);
}

.catalog-brand-identity {
  border-top: 2px solid var(--marine-gold);
}

.catalog-browser {
  width: min(100% - 40px, 1240px);
  padding-top: 44px;
}

.catalog-browser-controls {
  align-items: end;
  border-bottom: 1px solid var(--marine-line);
}

.catalog-browser-controls label,
.catalog-category-filters button,
.catalog-browser-status,
.brand-route-note {
  color: var(--marine-navy);
}

.catalog-category-filters button,
.catalog-language-link,
.language-switch button {
  background: #ffffff;
  border: 1px solid var(--marine-line);
  border-radius: 3px;
  font-weight: 650;
}

.catalog-category-filters button[aria-pressed="true"],
.language-switch button[aria-pressed="true"] {
  color: var(--marine-warm-white);
  background: var(--marine-navy);
  border-color: var(--marine-navy);
}

.catalog-table-wrap,
.product-table-wrap,
.table-wrap {
  min-width: 0;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--marine-line);
  border-radius: 5px;
}

.product-table,
.catalog-page-table,
.product-layout table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--marine-navy);
}

.product-table thead,
.catalog-page-table thead {
  background: rgba(12, 41, 70, 0.045);
}

.product-table th,
.product-table td,
.catalog-page-table th,
.catalog-page-table td,
.product-layout th,
.product-layout td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--marine-line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.product-table th,
.catalog-page-table th,
.product-layout th {
  color: var(--marine-navy);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-table td code,
.catalog-page-table td code {
  color: var(--marine-navy-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

/* Verified product detail pages: keep image left, introduction right */
body > header:not(.site-header):not(.catalog-header) {
  background: var(--marine-warm-white);
  border-bottom: 1px solid var(--marine-line);
}

.product-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product-layout .hero {
  gap: clamp(24px, 4vw, 56px);
}

.product-layout .media,
.product-layout .hero-info {
  min-width: 0;
}

.product-layout .media {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--marine-line);
  border-radius: 5px;
}

.product-layout .hero-info h1 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  text-wrap: balance;
}

.product-layout .identity,
.product-layout .actions,
.product-layout .links,
.product-layout .two-column {
  min-width: 0;
}

.product-layout .identity div {
  border-color: var(--marine-line);
}

.product-layout .identity dt,
.product-layout .manufacturer-status,
.product-layout .note,
.product-layout .legal,
.product-layout .image-fallback {
  color: var(--marine-muted);
}

.product-layout .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-layout > section:not(.hero) {
  margin-top: 42px;
}

.product-layout .two-column {
  gap: clamp(20px, 3vw, 48px);
}

.product-grid {
  gap: 18px;
}

.product-card {
  border-color: var(--marine-line);
}

.product-card img {
  height: 230px;
  background: #ffffff;
}

/* Buttons */
.button,
.header-rfq,
.catalog-header nav a,
.catalog-language-link {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 3px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.button.primary,
.header-rfq {
  color: var(--marine-warm-white);
  background: var(--marine-navy);
  border: 1px solid var(--marine-navy);
}

.button.primary:hover,
.button.primary:focus-visible,
.header-rfq:hover,
.header-rfq:focus-visible {
  color: var(--marine-warm-white);
  background: var(--marine-navy-deep);
}

.button.ghost {
  color: var(--marine-warm-white);
  background: rgba(246, 245, 240, 0.08);
  border: 1px solid rgba(246, 245, 240, 0.48);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: var(--marine-warm-white);
  border-color: var(--marine-gold);
}

.button.secondary,
.button:not(.primary):not(.ghost):not(.danger) {
  color: var(--marine-navy);
  background: #ffffff;
  border: 1px solid rgba(12, 41, 70, 0.25);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button:not(.primary):not(.ghost):not(.danger):hover,
.button:not(.primary):not(.ghost):not(.danger):focus-visible {
  color: var(--marine-navy-deep);
  border-color: var(--marine-gold);
}

/* Responsive safety at 390px and below */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header,
  .catalog-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero.business-hero {
    min-height: 72svh;
  }

  .hero.business-hero .hero-media::after {
    background: linear-gradient(180deg, rgba(7, 27, 47, 0.83), rgba(7, 27, 47, 0.94));
  }

  .hero.business-hero h1 {
    font-size: clamp(31px, 9vw, 39px);
  }

  .hero-actions,
  .product-layout .actions,
  .catalog-browser-controls,
  .catalog-brand-heading,
  .catalog-browser-status,
  .product-layout .two-column,
  .section-heading,
  .showcase-heading,
  .engineering-proof,
  .rfq-inner,
  .cic-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions > *,
  .product-layout .actions > *,
  .catalog-browser-controls > *,
  .catalog-brand-heading > *,
  .product-layout .two-column > *,
  .section-heading > *,
  .showcase-heading > *,
  .engineering-proof > *,
  .rfq-inner > *,
  .cic-inner > * {
    width: 100%;
    min-width: 0;
  }

  .button,
  .catalog-category-filters button,
  .catalog-language-link {
    width: 100%;
  }

  .catalog-category-filters,
  .language-switch,
  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .result-grid,
  .brand-route-grid,
  .product-grid,
  .case-list,
  .capability-list,
  .cic-checks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .result-grid > *,
  .brand-route-grid > *,
  .product-card,
  .case-row,
  .brand-route-featured,
  .catalog-controls,
  .catalog-shell,
  .catalog-browser,
  .product-layout,
  .product-layout .media,
  .product-layout .hero-info,
  .product-layout .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .product-layout .product-image-watermark img,
  .product-card img,
  .product-layout .media img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .product-table,
  .catalog-page-table,
  .product-layout table {
    min-width: 560px;
  }

  td,
  th,
  dd,
  dt,
  p,
  li,
  strong,
  code,
  small {
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Split marine hero keeps procurement controls prominent. */
.hero.business-hero { display:flex; align-items:stretch; background:var(--marine-warm-white); min-height:650px; }
.hero.business-hero .hero-media { left:50%; right:0; width:50%; }
.hero.business-hero .hero-media::after { background:transparent; }
.hero.business-hero .hero-inner { width:min(1280px,calc(100% - 80px)); margin:auto; padding:70px 0; }
.hero.business-hero .hero-copy-block { width:46%; max-width:600px; }
.hero.business-hero h1 { color:var(--marine-navy); font-size:clamp(36px,4vw,60px); line-height:1.16; }
.hero.business-hero .hero-intro { color:var(--marine-muted); }
.hero.business-hero .eyebrow { color:var(--marine-gold); }
.hero.business-hero .button.ghost { border-color:var(--marine-line); color:var(--marine-navy); }
.hero-model-search { display:flex; flex-wrap:wrap; gap:12px; margin:25px 0; padding:20px; background:#fff; border:1px solid var(--marine-line); }
.hero-model-search label { width:100%; font-size:12px; letter-spacing:.05em; font-weight:700; }
.hero-model-search input { flex:1 1 180px; min-width:0; border:0; border-bottom:1px solid var(--marine-line); padding:12px 0; color:var(--marine-navy); background:#fff; font:inherit; }
.hero-model-search button { background:var(--marine-navy); color:white; padding:12px 16px; border:0; cursor:pointer; font:inherit; }
.site-brand-logo .dual-brand,.footer-logo .dual-brand { background:transparent; }
@media(max-width:900px) {
 .hero.business-hero { flex-direction:column; min-height:0; }
 .hero.business-hero .hero-inner { order:1; width:calc(100% - 40px); padding:45px 0; }
 .hero.business-hero .hero-copy-block { width:100%; max-width:100%; }
 .hero.business-hero .hero-media { order:2; position:relative; left:auto; width:100%; height:300px; flex-shrink:0; }
 .hero.business-hero .hero-motion-toggle { top:auto; bottom:20px; }
}
.hero-model-search label { color:var(--marine-navy); }
