.product-showcase {
  background: #f0f1eb;
  background: color-mix(in srgb, #f0f1eb 64%, var(--sand));
  border-block-end: 1px solid var(--line);
}

.home-scenes {
  padding-block: clamp(1.4rem, 3vw, 3.35rem) clamp(1rem, 2vw, 2rem);
}

.home-scenes-intro {
  display: grid;
  gap: .65rem;
  margin-block-end: clamp(1.05rem, 2.6vw, 2rem);
}

.home-scenes-intro h1 {
  color: var(--accent);
  font-size: clamp(1.95rem, 4.25vw, 4rem);
  line-height: 1.14;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.home-scenes-intro p {
  max-width: 72ch;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(.65rem, 1.45vw, 1.15rem);
}

.showcase-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid #123530;
  background: #123530;
  color: #fff;
}

.showcase-scene {
  min-width: 0;
  aspect-ratio: 1280 / 853;
  position: relative;
  overflow: hidden;
  background: #203c38;
}

.showcase-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.masthead-scene figcaption {
  padding: .6rem .8rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.showcase-copy {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: .45rem;
  padding: clamp(.8rem, 1.4vw, 1.25rem);
  border-block-start: 3px solid #efcc65;
  overflow-wrap: anywhere;
}

.showcase-copy .marketing-context { color: #f7d976; }

.showcase-copy h2 {
  font-size: clamp(1.08rem, 1.65vw, 1.48rem);
  line-height: 1.32;
  text-wrap: pretty;
}

.showcase-copy h2 a {
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.showcase-copy h2 a:hover {
  text-decoration-thickness: 2px;
}

.marketing-context {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.45;
}

.marketing-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  overflow-wrap: anywhere;
}

.marketing-link:hover {
  text-decoration-thickness: 2px;
}

.home-scenes-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem 1rem;
  margin-block-start: .5rem;
}

.home-scenes-actions p {
  font-size: .875rem;
}

.home-scenes-index {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.home-scenes-index .section-heading {
  margin-block-end: 1.25rem;
}

.showcase-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.showcase-index > section {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(.85rem, 1.6vw, 1.25rem);
}

.showcase-index h3 {
  color: var(--accent);
  font-size: 1.12rem;
}

.showcase-index h3 a {
  padding-block: .45rem;
}

.showcase-index ul {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
}

.showcase-index li + li {
  border-block-start: 1px solid var(--line);
}

.showcase-index a {
  display: block;
  padding-block: .6rem;
  font-weight: 720;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.showcase-index a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.showcase-index a span,
.catalog-card .item-scenario {
  display: block;
  margin-block-start: .23rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 450;
  line-height: 1.5;
}

.catalog-scenes-head {
  padding-block: .7rem clamp(.8rem, 1.5vw, 1.3rem);
}

.catalog-scenes-head h1 {
  margin-block: .5rem .4rem;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
}

.catalog-scenes-layout {
  grid-template-columns: clamp(155px, 16vw, 210px) minmax(0, 1fr);
  padding-block-start: clamp(1rem, 2.35vw, 2.1rem);
}

.catalog-scenes-layout .catalog-toolbar {
  gap: .75rem 1rem;
  padding-block-end: 1rem;
}

.catalog-scene-card .catalog-card-scene {
  background: var(--sand);
}

.catalog-scene-card .catalog-card-scene img {
  height: auto;
  aspect-ratio: 1280 / 853;
  padding: 0;
  object-fit: contain;
}

.catalog-scene-card .catalog-product-photo { background: var(--white); }
.catalog-scene-card .catalog-product-photo img { padding: .8rem; }

.catalog-card-scene figcaption {
  padding: .35rem .75rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.catalog-scene-card a > div {
  align-items: start;
}

.catalog-scene-card .item-scenario {
  margin-block: .45rem .28rem;
  color: var(--ink);
  font-size: clamp(.98rem, 1.4vw, 1.16rem);
  font-weight: 740;
  line-height: 1.36;
}

.catalog-scene-card .item-scenario-copy {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
}

.industry-banner .hero-inner h2 {
  max-width: min(20ch, 53%);
  color: var(--accent);
  font-size: clamp(1.95rem, 3.6vw, 3.3rem);
}

.industry-banner .hero-inner {
  min-height: clamp(290px, 32vw, 430px);
  padding-block: clamp(2rem, 5vw, 3.9rem);
}

.product-masthead {
  --masthead-background: #f3f5f0;
  --masthead-title: #193830;
  --masthead-text: #41554d;
  --masthead-frame: #d3ddd4;
  --masthead-surface: #fff;
  --masthead-action: #14534b;
  --masthead-action-text: #fff;
  background: var(--masthead-background);
  background: color-mix(in srgb, var(--masthead-background) 94%, var(--accent));
  border-block-end: 1px solid var(--masthead-frame);
  padding-block: 1rem clamp(1.7rem, 4vw, 3.8rem);
  color: var(--masthead-title);
}

.product-masthead .breadcrumbs {
  border-block-end: 1px solid var(--masthead-frame);
  padding-block-end: .9rem;
  margin-block-end: clamp(1.3rem, 3vw, 2.75rem);
  color: var(--masthead-text);
}

.product-masthead .breadcrumbs a {
  color: inherit;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.product-masthead .breadcrumbs a:hover {
  color: var(--masthead-title);
}

.product-masthead .breadcrumbs span,
.product-masthead .breadcrumbs li::before {
  color: var(--masthead-text);
  align-content: center;
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  grid-template-areas: 'copy scene' 'selection scene';
  align-items: start;
  gap: clamp(1rem, 2.8vw, 2.5rem);
}

.masthead-copy {
  grid-area: copy;
  align-self: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.masthead-copy h1 {
  font-size: clamp(2.05rem, 4.15vw, 4rem);
}

.masthead-copy h2 {
  margin-block-start: clamp(.8rem, 2vw, 1.5rem);
  font-size: clamp(1.35rem, 2.3vw, 2.1rem);
  font-weight: 690;
  line-height: 1.3;
  text-wrap: pretty;
}

.masthead-value {
  max-width: 56ch;
  margin-block-start: .7rem;
  color: var(--masthead-text);
  line-height: 1.72;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.masthead-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
  margin-block-start: 1.1rem;
}

.masthead-actions .button {
  background: var(--masthead-action);
  color: var(--masthead-action-text);
  max-width: 100%;
}

.masthead-actions .marketing-link { color: var(--masthead-title); }

.masthead-scene {
  grid-area: scene;
  min-width: 0;
  width: 100%;
  scroll-margin-block-start: 1rem;
  border: 1px solid var(--masthead-frame);
  background: var(--masthead-surface);
  align-self: center;
}

.masthead-scene > a { display: block; }

.masthead-scene img {
  aspect-ratio: 1280 / 853;
  object-fit: contain;
}

.masthead-catalog-photo img { background: white; padding: clamp(.8rem, 4vw, 2rem); }

.masthead-scene figcaption {
  color: var(--masthead-text);
  border-block-start: 1px solid var(--masthead-frame);
}

.masthead-selection {
  grid-area: selection;
  padding: clamp(.9rem, 1.7vw, 1.4rem);
  background: var(--masthead-surface);
  border: 1px solid var(--masthead-frame);
  border-inline-start: 3px solid var(--masthead-action);
  min-width: 0;
}

.masthead-selection h2 {
  font-size: clamp(1.08rem, 1.55vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: normal;
}

.masthead-selection ul {
  margin: .65rem 0 0;
  padding-inline-start: 1.2rem;
  font-size: .96rem;
  color: var(--masthead-text);
  overflow-wrap: anywhere;
}

.masthead-selection li + li { margin-block-start: .25rem; }
.masthead-selection li::marker { color: var(--masthead-action); }

.masthead-note {
  margin-block-start: .75rem;
  color: var(--masthead-text);
  font-size: .875rem;
}

.product-masthead[data-treatment="guard"] {
  --masthead-background: #143731;
  --masthead-title: #f7fbf6;
  --masthead-text: #deebe4;
  --masthead-frame: #53716a;
  --masthead-surface: #203f38;
  --masthead-action: #f5d16c;
  --masthead-action-text: #252d21;
  background-image: linear-gradient(115deg, #102d29, transparent 62%);
}

.product-masthead[data-treatment="guard"] .masthead-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  grid-template-areas: 'copy scene' 'selection selection';
}

.product-masthead[data-treatment="guard"] .masthead-selection ul,
.product-masthead[data-treatment="flow"] .masthead-selection ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2.1rem;
}

.product-masthead[data-treatment="guard"] .masthead-selection li,
.product-masthead[data-treatment="flow"] .masthead-selection li {
  flex: 1 1 12rem;
  margin: 0;
}

.product-masthead[data-treatment="guard"] a:focus-visible,
.showcase-card a:focus-visible {
  outline-color: #fae39d;
}

.product-masthead[data-treatment="span"] {
  --masthead-background: #eef4f7;
  --masthead-title: #233e4b;
  --masthead-text: #425862;
  --masthead-frame: #c6d6dd;
  --masthead-action: #315d72;
}

.product-masthead[data-treatment="span"] .masthead-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: 'scene copy' 'scene selection';
}

.product-masthead[data-treatment="span"] .masthead-scene {
  padding: clamp(.4rem, 1.2vw, .95rem);
  background: #e2ebf0;
}

.product-masthead[data-treatment="bench"] {
  --masthead-background: #f4f1e8;
  --masthead-title: #2e3d36;
  --masthead-text: #4f5c53;
  --masthead-frame: #d3d8cb;
  --masthead-surface: #fbfaf6;
}

.product-masthead[data-treatment="bench"] .masthead-grid {
  grid-template-areas: 'copy scene' 'copy selection';
}

.product-masthead[data-treatment="bench"] .masthead-copy {
  padding-block: 1.2rem;
}

.product-masthead[data-treatment="flow"] {
  --masthead-background: #f3f7f7;
  --masthead-title: #163e45;
  --masthead-text: #3b565c;
  --masthead-frame: #cadbdc;
  --masthead-action: #1c5962;
}

.product-masthead[data-treatment="flow"] .masthead-grid {
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  grid-template-areas: 'scene copy' 'selection selection';
}

.product-masthead[data-treatment="flow"] .masthead-scene {
  border-block-start: 4px solid var(--masthead-action);
}

.product-masthead[data-treatment="precision"] {
  --masthead-background: #eef0f2;
  --masthead-title: #283b49;
  --masthead-text: #455661;
  --masthead-frame: #cbd4da;
  --masthead-action: #3c566d;
}

.product-masthead[data-treatment="precision"] .masthead-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.45fr);
  grid-template-areas: 'copy scene' 'selection scene';
}

.product-masthead[data-treatment="precision"] .masthead-scene {
  padding: clamp(.4rem, 1.55vw, 1.2rem);
  box-shadow: .35rem .35rem 0 #dce4e9;
}

.product-masthead[data-treatment="material"] {
  --masthead-background: #f1f4ee;
  --masthead-title: #2d4539;
  --masthead-text: #485e52;
  --masthead-frame: #ccd9ce;
  --masthead-surface: #f9fbf8;
  --masthead-action: #3a654e;
}

.product-masthead[data-treatment="material"] .masthead-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas: 'scene copy' 'scene selection';
}

.product-masthead[data-treatment="material"] .masthead-selection {
  background: #e5eee4;
}

@media (max-width: 1520px) {
  body:has(.product-showcase, .product-masthead, .catalog-scenes-layout) .contact-dock[data-collapsible] {
    width: var(--floating-action-width);
    max-width: none;
  }

  body:has(.product-showcase, .product-masthead, .catalog-scenes-layout) .contact-dock[data-collapsible]:not(.contact-expanded) > :not(.contact-toggle) {
    display: none;
  }

  body:has(.product-showcase, .product-masthead, .catalog-scenes-layout) .contact-dock .contact-toggle {
    display: block;
  }

  body:has(.product-showcase, .product-masthead, .catalog-scenes-layout) .contact-dock.contact-expanded {
    z-index: 96;
  }
}

@media (max-width: 980px) {
  .showcase-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masthead-grid {
    column-gap: 1.2rem;
  }
}

@media (max-width: 760px) {
  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-copy {
    padding: .72rem .7rem .85rem;
  }

  .catalog-scenes-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .catalog-scenes-layout .catalog-sidebar {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .catalog-scenes-layout .catalog-sidebar h2,
  .catalog-scenes-layout .catalog-sidebar a {
    flex-shrink: 0;
    min-height: 44px;
    padding: .62rem .72rem;
    display: flex;
    align-items: center;
    border-block-end: 0;
    border-inline-end: 1px solid var(--line);
    font-size: .9rem;
  }

  .catalog-scenes-layout .catalog-sidebar a:last-child {
    border-inline-end: 0;
  }

  .product-masthead .masthead-grid,
  .product-masthead[data-treatment] .masthead-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'copy' 'scene' 'selection';
    gap: 1.15rem;
  }

  .product-masthead[data-treatment="bench"] .masthead-copy {
    padding-block: 0;
  }

  .masthead-selection ul,
  .product-masthead[data-treatment="guard"] .masthead-selection ul,
  .product-masthead[data-treatment="flow"] .masthead-selection ul {
    display: block;
  }

  .product-masthead[data-treatment="guard"] .masthead-selection li + li,
  .product-masthead[data-treatment="flow"] .masthead-selection li + li {
    margin-block-start: .25rem;
  }
}

@media (max-width: 700px) {
  .industry-banner {
    padding-block-start: min(45vw, 245px);
  }

  .industry-banner .hero-visual {
    height: min(45vw, 245px);
  }

  .industry-banner .hero-inner {
    min-height: auto;
    padding-block: .7rem 1.65rem;
  }

  .industry-banner .hero-inner h2 {
    max-width: none;
  }
}

@media (max-width: 430px) {
  .showcase-index { grid-template-columns: minmax(0, 1fr); }
}

.retro-scenes { padding-block: 1rem 3rem; }
.retro-states { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.retro-states figure { margin: 0; }
.retro-states img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.retro-states figcaption { padding-block: .75rem; line-height: 1.6; }
.retro-states strong { display: block; color: var(--accent); }
