:root {
  --ink: #182126;
  --muted: #62717a;
  --line: #dbe3e7;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --accent: #236476;
  --accent-strong: #174a58;
  --accent-soft: #e7f0f2;
  --signal: #7a5a28;
  --shadow: 0 18px 45px rgba(22, 33, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 227, 231, 0.88);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button.secondary {
  background: #fff;
  color: var(--accent-strong);
}

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.button.full {
  width: 100%;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  padding: clamp(54px, 8vw, 94px) 0 32px;
}

.home-hero {
  position: relative;
  min-height: clamp(500px, 68vh, 700px);
  display: grid;
  align-items: end;
  padding: 0 0 clamp(24px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 18, 22, 0.84) 0%, rgba(10, 18, 22, 0.58) 44%, rgba(10, 18, 22, 0.16) 100%),
    linear-gradient(180deg, rgba(10, 18, 22, 0.12) 0%, rgba(10, 18, 22, 0.6) 100%),
    url("media/lab-hero.jpg") center / cover;
}

.home-overlay {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
}

.home-copy {
  max-width: 720px;
  padding-top: clamp(92px, 14vw, 160px);
}

.home-copy h1 {
  color: #fff;
  font-size: clamp(2.65rem, 5.7vw, 6rem);
  text-wrap: balance;
}

.home-copy .kicker {
  color: #b9d3d9;
}

.home-copy .lede {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.home-copy .button {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.home-copy .button:hover {
  border-color: #dce8ea;
  background: #dce8ea;
}

.home-copy .button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
}

.home-copy .button.secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.home-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.home-rail span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 820;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.05rem;
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.info-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-panel dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.info-panel dt {
  font-weight: 850;
}

.info-panel dd {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 48px 0;
}

.home-minimal {
  padding: clamp(46px, 7vw, 78px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.home-search-band {
  background:
    linear-gradient(180deg, #fff 0%, #f7fafb 100%);
}

.home-finder {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: end;
  margin-bottom: 18px;
}

.home-finder p {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-finder-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 22px;
}

.chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 780;
  padding: 0 14px;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.minimal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.section-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow article,
.contact-card,
.admin-panel,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workflow article {
  padding: 22px;
}

.workflow p {
  color: var(--muted);
  line-height: 1.65;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.service-list div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.service-list strong {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) minmax(130px, 170px);
  gap: 12px;
  margin-bottom: 18px;
}

.field {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 14px;
}

.inventory-meta {
  margin: 0 0 16px;
  color: var(--muted);
}

.load-more {
  display: flex;
  width: fit-content;
  margin: 28px auto 0;
}

.knowledge-panel {
  display: grid;
  gap: 18px;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.knowledge-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  overflow-wrap: anywhere;
}

.resource-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.resource-facts div {
  display: grid;
  gap: 2px;
}

.resource-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-facts dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.seo-crawl-section {
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.seo-crawl-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.seo-crawl-head p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.category-link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.category-link-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.category-link-cloud span {
  color: var(--muted);
  font-size: 0.78rem;
}

.seo-product-links {
  column-count: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 20px;
}

.seo-product-links li {
  break-inside: avoid;
  margin: 0 0 12px;
  padding-left: 4px;
}

.seo-product-links a {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
  text-decoration-color: rgba(35, 100, 118, 0.3);
  text-underline-offset: 3px;
}

.seo-product-links a:hover {
  color: var(--accent-strong);
}

.seo-product-links span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.product-card {
  overflow: hidden;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 2vw, 22px);
  background:
    radial-gradient(circle at 18% 18%, rgba(35, 100, 118, 0.16), transparent 30%),
    linear-gradient(135deg, #edf3f4, #f8fafb);
  border-bottom: 1px solid var(--line);
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-image img.is-low-res {
  width: auto;
  height: auto;
  image-rendering: auto;
  mix-blend-mode: normal;
}

.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 8px;
  place-items: center;
  color: var(--accent);
  font-weight: 850;
  padding: 18px;
  text-align: center;
}

.placeholder span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd8dd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
}

.placeholder small {
  align-self: start;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-width: 0;
  gap: 10px;
  padding: 16px;
  flex: 1;
}

.product-title {
  min-height: 3.2em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-weight: 800;
  line-height: 1.34;
}

.product-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.price {
  color: var(--accent-strong);
  font-size: 1.1rem;
  font-weight: 900;
  align-self: end;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-badge {
  background: #fff4d8;
  color: #7a5a28;
}

.featured-inventory {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  margin: 10px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.featured-media {
  min-height: 320px;
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  padding: clamp(16px, 3vw, 30px);
  text-decoration: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(35, 100, 118, 0.2), transparent 32%),
    linear-gradient(135deg, #e9f0f2, #fbfcfc);
}

.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.featured-media img.is-low-res {
  width: auto;
  height: auto;
  mix-blend-mode: normal;
}

.featured-media .placeholder {
  min-height: 320px;
}

.featured-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.featured-copy h2 {
  max-width: 760px;
}

.featured-copy p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.featured-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.detail {
  padding: 44px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.detail-media {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  max-height: min(72vh, 720px);
}

.detail-media img {
  width: 100%;
  height: 100%;
  max-height: min(68vh, 680px);
  object-fit: contain;
}

.detail-media img.is-low-res {
  width: auto;
  height: auto;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
}

.detail-thumbs a {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.detail-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.detail-copy {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.spec span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.spec strong {
  display: block;
  margin-top: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-card,
.admin-panel {
  padding: 24px;
}

.admin-panel {
  display: grid;
  gap: 12px;
}

.notice {
  border-left: 4px solid var(--signal);
  padding: 14px 16px;
  background: #fff9ee;
  color: #5c431d;
  line-height: 1.6;
}

.site-footer {
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.narrow-shell {
  max-width: 860px;
}

.policy-page section {
  margin-top: 34px;
}

.policy-page p:not(.kicker) {
  color: var(--muted);
  line-height: 1.72;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .hero-grid,
  .minimal-grid,
  .home-finder,
  .detail-grid,
  .contact-grid,
  .featured-inventory {
    grid-template-columns: 1fr;
  }

  .workflow,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-product-links {
    column-count: 1;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .home-finder-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell,
  .nav {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  h1 {
    font-size: 2.25rem;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.75rem;
    overflow-wrap: anywhere;
  }

  .lede,
  .section-head p,
  .featured-copy p:not(.kicker),
  .detail-copy p {
    overflow-wrap: anywhere;
  }

  .home-hero {
    min-height: 560px;
    background-position: 58% center;
  }

  .home-copy {
    padding-top: 112px;
  }

  .home-rail {
    grid-template-columns: 1fr;
  }

  .home-rail span {
    min-height: 46px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .workflow,
  .product-grid,
  .knowledge-grid,
  .specs {
    grid-template-columns: 1fr;
  }

  .detail-copy,
  .detail-gallery {
    width: 100%;
    max-width: 354px;
    overflow: hidden;
  }

  .detail-grid {
    width: 100%;
    max-width: 354px;
    overflow: hidden;
  }

  .product-image {
    aspect-ratio: 16 / 11;
  }

  .detail-media {
    max-height: none;
  }

  .detail-media img {
    width: 100%;
    max-height: 58vh;
  }

  .detail-copy h1 {
    font-size: clamp(1.78rem, 8vw, 2.1rem);
    overflow-wrap: anywhere;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}
