@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10243a;
  --navy: #081a2d;
  --muted: #506278;
  --paper: #f4f8fc;
  --line: #d8e3ee;
  --blue: #07578a;
  --blue-hover: #064570;
  --aqua: #90eaff;
  --frame: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --heading: "Space Grotesk", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.6 "DM Sans", system-ui, sans-serif;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; }
h2 { font-size: clamp(32px, 4.1vw, 53px); letter-spacing: -.05em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #237fc0; outline-offset: 4px; }

.frame { width: min(calc(100% - 2 * var(--gutter)), var(--frame)); margin-inline: auto; }
.section-space { padding-block: clamp(48px, 6.3vw, 88px); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: #fff;
  border-radius: 8px;
}
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; line-height: 1.5; text-transform: uppercase; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.button-blue { color: #fff; background: var(--blue); }
.button-blue:hover { background: var(--blue-hover); }
.button-aqua { color: var(--navy); background: var(--aqua); }
.button-aqua:hover { background: #c7f5ff; }
.button-glass { color: #fff; border-color: #a6c9dd78; background: #e7f8ff0c; }
.button-glass:hover { background: #e7f8ff1f; border-color: #a6c9dd; }
.button-outline { color: var(--blue); background: #fff; border-color: #b5cddf; }
.button-outline:hover { background: #e9f4fc; border-color: #87aec8; }

.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid #e3eaf1; background: #fffffff5; backdrop-filter: blur(12px); }
.header-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.brand-lockup { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.labware-logo { width: clamp(112px, 11vw, 157px); height: auto; }
.maggenta-logo { width: 62px; height: auto; }
.brand-divider { width: 1px; height: 31px; background: var(--line); }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 3.3vw, 43px); }
.main-nav a { color: #354c63; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .footer-link:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px 6px 13px;
  background: #f0f6fb;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #153c58;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.cart-trigger:hover { background: #e1f1fb; border-color: #9dbed5; }
.cart-count { min-width: 24px; height: 24px; border-radius: 50px; padding-inline: 5px; display: grid; place-items: center; background: #103b58; color: white; font-size: 12px; }

.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy); }
.hero-photo, .hero-wash { position: absolute; z-index: -1; }
.hero-photo { inset: 0 0 0 32%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 56%; }
.hero-wash {
  inset: 0;
  background:
    linear-gradient(0deg, #081a2d55, transparent 45%),
    linear-gradient(90deg, #081a2d 8%, #081a2d 27%, #081a2de8 39%, #081a2d61 61%, #081a2d00 85%);
}
.hero-inner { position: relative; display: flex; align-items: center; min-height: clamp(480px, 42vw, 605px); padding-block: 72px 82px; }
.hero-copy { width: min(670px, 63%); }
.hero-eyebrow { color: #b4edfa; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow > span { display: block; width: 19px; height: 1px; background: var(--aqua); }
.hero h1 { margin-top: 19px; font-size: clamp(43px, 5.6vw, 83px); line-height: .99; letter-spacing: -.07em; }
.hero h1 em { color: var(--aqua); font-style: normal; }
.hero-description { max-width: 460px; margin-top: 25px; color: #e0ecf6; font-size: clamp(15px, 1.34vw, 18px); line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero-actions .button { min-height: 52px; }
.hero a:focus-visible, .hero button:focus-visible, .contact a:focus-visible { outline-color: var(--aqua); }

.hero-feature {
  position: absolute;
  right: 0;
  bottom: 30px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 13px 6px 7px;
  text-align: left;
  color: #fff;
  background: #0a2034e8;
  border: 1px solid #9ed4eb65;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: background-color 180ms ease, border-color 180ms ease;
}
.hero-feature:hover { background: #12394f; border-color: #b2edfc; }
.hero-feature-image { display: grid; place-items: center; width: 55px; height: 56px; background: #dfeaf3; border-radius: 6px; }
.hero-feature-image img { width: auto; height: 49px; object-fit: contain; mix-blend-mode: multiply; }
.hero-feature-text { display: grid; min-width: 124px; font-size: 14px; font-weight: 750; }
.hero-feature-text small { color: #c3dfed; font-weight: 550; font-size: 12px; }
.hero-feature > .icon { color: #a5e6f7; width: 17px; height: 17px; }

.catalog { background: var(--paper); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-intro { color: var(--muted); margin-top: 10px; max-width: 55ch; }
.search-field {
  flex: 0 1 300px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  min-height: 50px;
  padding-inline: 14px;
  color: #47647e;
  border: 1px solid #c9d8e5;
  border-radius: 9px;
  background: #fff;
}
.search-field:focus-within { border-color: #317eb1; box-shadow: 0 0 0 2px #9dd4f5; }
.search-field input { width: 100%; min-height: 47px; border: 0; padding: 0; outline: none; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: var(--muted); }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-block: 25px 19px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filter {
  min-height: 43px;
  padding: 7px 14px;
  border: 1px solid #d1dfeb;
  border-radius: 50px;
  background: #fff;
  color: #324e68;
  font-size: 13px;
  font-weight: 750;
}
.filter:hover { background: #e6f2fa; border-color: #a9c7db; }
.filter[aria-pressed="true"] { color: #fff; border-color: #103b58; background: #103b58; }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #dbe6ef;
  background: #fff;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.product-card:hover, .product-card:focus-within { border-color: #9dc3de; box-shadow: 0 11px 30px #14426812; }
.card-art {
  position: relative;
  aspect-ratio: 1.49;
  background: radial-gradient(ellipse at 46% 39%, #faffff 3%, #e7f0f8 86%);
  overflow: hidden;
}
.card-art img { position: absolute; inset: 11% 10.5%; width: 79%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform 240ms ease; }
.product-card:hover img { transform: scale(1.055); }
.card-code {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 8px;
  color: #31536f;
  background: #ffffffc9;
  border: 1px solid #d6e5ef;
  border-radius: 6px;
  font: 650 11px/1.6 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: .035em;
}
.card-info { display: flex; column-gap: 12px; justify-content: space-between; align-items: center; padding: 17px 17px 19px; }
.card-info h3 { font-size: clamp(17px, 1.8vw, 23px); line-height: 1.15; letter-spacing: -.035em; }
.card-link { border: 0; background: none; padding: 0; font: inherit; text-align: left; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-meta { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.28; }
.card-arrow { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border: 1px solid #c9dce9; color: var(--blue); border-radius: 50%; transition: background-color 180ms ease, color 180ms ease; }
.card-arrow .icon { width: 18px; height: 18px; }
.product-card:hover .card-arrow, .product-card:focus-within .card-arrow { background: var(--blue); color: white; border-color: var(--blue); }
.more-row { display: grid; justify-content: center; }
.more-row > :not([hidden]) { margin-top: 26px; }
.no-results { padding: 30px 20px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.no-results .button { margin-top: 14px; }

.guide { border-top: 1px solid #e4edf5; }
.steps { list-style: none; margin-top: 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 22px; background: #f9fcff; }
.step-icon { display: inline-grid; place-items: center; color: var(--blue); background: #ddf0fc; width: 43px; height: 43px; border-radius: 10px; }
.steps h3 { margin-top: 15px; font-size: 22px; letter-spacing: -.035em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 34ch; }

.contact { color: #fff; background: radial-gradient(ellipse at 83% -15%, #144c67 0, #0b2641 45%, #081a2d 85%); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: center; gap: clamp(28px, 6vw, 76px); }
.contact-eyebrow { color: #a6e9fa; margin-bottom: 13px; }
.contact h2 + p { max-width: 52ch; margin-top: 13px; color: #d7e8f4; }
.contact-links { display: grid; gap: 9px; }
.contact-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 63px;
  padding: 10px 13px;
  background: #e8f8ff11;
  border: 1px solid #a6c9dd52;
  color: #effaff;
  text-decoration: none;
  border-radius: 9px;
}
.contact-links a:hover { background: #e8f8ff2b; border-color: #a6c9dd; }
.contact-links a > span { display: grid; }
.contact-links small { color: #d0e8f8; }
.contact-links .icon { color: #9ee6fc; }
.contact-arrow { width: 16px; height: 16px; }
.site-footer { padding-block: 24px; }
.footer-inner { display: flex; gap: 23px; align-items: center; }
.footer-inner p { color: var(--muted); font-size: 13px; }
.footer-inner img { width: 79px; height: auto; }
.footer-link { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 800; }
.footer-link .icon { width: 16px; height: 16px; }

dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 80px #061c3052;
}
dialog::backdrop { background: #071c3099; backdrop-filter: blur(4px); }
.icon-button { display: grid; place-items: center; height: 41px; width: 41px; padding: 0; border: 1px solid #d2e0ec; color: #244761; background: #fff; border-radius: 50%; flex-shrink: 0; }
.icon-button:hover { background: #e8f4fc; }
.product-dialog { width: min(900px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); border-radius: 17px; overflow: hidden; }
.detail-close { position: absolute; z-index: 1; top: 14px; right: 14px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); max-height: calc(100dvh - 32px); overflow: auto; }
.detail-art { display: grid; align-items: center; justify-items: center; min-height: 328px; padding: 32px; background: radial-gradient(ellipse at 49% 37%, #f8fcff, #e2eff9); }
.detail-art img { width: 100%; height: 325px; object-fit: contain; mix-blend-mode: multiply; }
.detail-body { padding: 34px clamp(27px, 4vw, 48px) 34px 27px; }
.detail-tag { color: #315a78; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; margin-right: 34px; }
.detail-body h2 { margin-top: 7px; font-size: clamp(26px, 3vw, 37px); letter-spacing: -.05em; }
.detail-desc { margin-top: 10px; color: var(--muted); font-size: 15px; }
.variant-label, .quantity-label, .notes-label { display: block; font-size: 14px; font-weight: 750; }
.variant-label { margin-top: 20px; }
.variant-field { display: block; position: relative; margin-top: 5px; }
.variant-field select, .quantity-input, .notes-label textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bfcfde;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 550;
}
.variant-field select { padding-left: 37px; }
.variant-color { position: absolute; pointer-events: none; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; border-radius: 100%; border: 1px solid #10243a3d; background: var(--swatch); }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 17px 0 20px; }
.detail-specs > div { border-top: 1px solid var(--line); padding-top: 7px; }
.detail-specs dt { color: var(--muted); font-size: 11px; }
.detail-specs dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; line-height: 1.35; }
.detail-bottom { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: end; }
.quantity-label { min-width: 0; }
.quantity-label input { display: block; width: 97px; margin-top: 4px; }
.detail-bottom .button { min-height: 44px; }
.detail-help, .detail-feedback { margin-top: 8px; color: var(--muted); font-size: 12px; }
.detail-feedback { color: #97323c; }

.cart-dialog { width: min(100%, 490px); max-width: none; height: 100dvh; max-height: none; inset: 0 0 0 auto; margin: 0; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 23px 24px 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 32px; }
.cart-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.cart-main { flex: 1 1 auto; overflow: auto; padding: 15px 24px 20px; }
.cart-items { display: grid; }
.cart-item { display: grid; grid-template-columns: 69px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding-block: 12px; border-bottom: 1px solid #e6edf4; }
.cart-thumb { position: relative; width: 69px; height: 74px; overflow: hidden; background: #eaf2f9; border-radius: 8px; }
.cart-thumb img { position: absolute; inset: 7% 5.5%; width: 89%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item h3 { font-size: 17px; line-height: 1.2; }
.cart-item p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cart-quantity { display: grid; justify-items: end; gap: 5px; }
.cart-quantity input { width: 73px; padding-inline: 6px; min-height: 39px; }
.quantity-input:invalid { border-color: #b6404a; box-shadow: 0 0 0 1px #b6404a; }
.remove-button, .copy-button { border: 0; background: transparent; padding: 5px 0; color: var(--blue); font-size: 13px; font-weight: 750; }
.remove-button:hover, .copy-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.notes-label { margin-top: 17px; }
.notes-label span { color: var(--muted); font-weight: 500; }
.notes-label textarea { display: block; resize: vertical; margin-top: 5px; }
.cart-empty { max-width: 270px; margin: 48px auto 15px; display: grid; justify-items: center; text-align: center; }
.cart-empty h3 { margin-top: 13px; font-size: 25px; letter-spacing: -.04em; }
.cart-empty p { color: var(--muted); margin-top: 9px; }
.cart-empty .button { margin-top: 16px; }
.cart-footer { border-top: 1px solid var(--line); background: #f5faff; padding: 13px 24px 17px; }
.cart-footer p { color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.quote-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.quote-links .button { padding-inline: 6px; font-size: 13px; }
.quote-links .icon, .copy-button .icon { width: 17px; height: 17px; }
.quote-links [aria-disabled="true"] { opacity: .5; cursor: default; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; min-height: 36px; }
.copy-button:disabled { opacity: .5; }
.toast {
  position: fixed;
  z-index: 6;
  right: var(--gutter);
  bottom: 18px;
  max-width: calc(100% - 2 * var(--gutter));
  background: #123b53;
  color: #fff;
  padding: 11px 16px;
  border: 1px solid #386484;
  border-radius: 9px;
  box-shadow: 0 8px 24px #142c4440;
  font-size: 14px;
  pointer-events: none;
}
.toast:empty { padding: 0; border: 0; box-shadow: none; }

@media (max-width: 900px) {
  .main-nav { gap: 17px; }
  .header-inner { gap: 15px; }
  .brand-lockup { gap: 12px; }
  .hero-copy { width: min(560px, 76%); }
  .hero-feature { bottom: 19px; }
  .steps li { padding: 17px; }
  .card-info { padding: 14px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 79px; }
  .header-inner { min-height: 63px; }
  .main-nav { display: none; }
  .hero-inner { min-height: 0; align-items: start; padding-block: 48px 279px; }
  .hero-copy { width: min(100%, 550px); }
  .hero h1 { font-size: clamp(42px, 8.8vw, 67px); }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 21px; gap: 8px; }
  .hero-photo { inset: auto 0 0; height: 350px; }
  .hero-photo img { object-position: 70% 58%; }
  .hero-wash { background: linear-gradient(0deg, #081a2d63, transparent 30%), linear-gradient(180deg, #081a2d 33%, #081a2de8 51%, transparent 78%); }
  .hero-feature { right: 0; bottom: 18px; }
  .catalog-heading { display: grid; gap: 17px; }
  .search-field { width: min(100%, 370px); min-width: 0; }
  .catalog-toolbar { align-items: start; flex-direction: column; gap: 8px; margin-block: 16px 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .card-info h3 { font-size: 18px; }
  .card-arrow { width: 33px; height: 33px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-links { width: min(100%, 390px); }
}

@media (max-width: 560px) {
  .card-code { top: 8px; left: 8px; }
  .card-art img { inset-block: 32px 8%; height: calc(92% - 32px); }
  .steps { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .steps .step-icon { grid-row: span 2; }
  .steps h3 { margin: 0; font-size: 20px; }
  .steps p { margin-top: 4px; }
  .footer-inner { flex-wrap: wrap; gap: 12px 16px; }
  .footer-inner p { flex: 1; min-width: 190px; }
  .footer-link { margin-left: 0; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-art { min-height: auto; padding: 21px; }
  .detail-art img { height: 185px; width: 90%; }
  .detail-body { padding: 20px; }
  .detail-tag { margin-right: 0; }
}

@media (max-width: 390px) {
  .cart-trigger-label { display: none; }
  .hero-actions .button { padding-inline: 12px; }
  .product-card .card-info { padding: 12px; gap: 5px; }
  .card-meta { font-size: 12px; }
  .card-arrow { width: 27px; height: 27px; }
  .card-arrow .icon { width: 14px; height: 14px; }
  .cart-head, .cart-main, .cart-footer { padding-inline: 16px; }
}

@media (max-width: 340px) {
  .hero h1 { font-size: 37px; }
  .product-grid { grid-template-columns: 1fr; }
  .quote-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
