/* Desktop hierarchy refinement of the approved olive / cream composition. */
.rail-stack { display: contents; }
@media (min-width: 901px) {
  /* Brand stays the anchor; the two destinations read as one quiet group. */
  body[data-controls="type"] .header-nav { gap: 24px; }
  body[data-controls="type"] :is(.header-pill, .header-link) {
    height: 44px;
    gap: 7px;
    border-bottom-width: 1px;
    border-bottom-color: transparent;
    color: #3d4927;
    font-size: 14px;
  }
  body[data-controls="type"] :is(.header-pill, .header-link)>svg {
    width: 21px;
    height: 21px;
    opacity: .55;
  }
  body[data-controls="type"] :is(.header-pill, .header-link):hover,
  body[data-controls="type"] :is(.header-pill, .header-link):focus-visible { border-bottom-color: currentColor; }
  body[data-controls="type"] :is(.header-pill, .header-link):hover>svg,
  body[data-controls="type"] :is(.header-pill, .header-link):focus-visible>svg { opacity: 1; }

  /* A compact navigation group keeps the model links within the first scene. */
  .rail-stack { display: block; position: sticky; top: 10px; }
  .rail-nav { position: static; top: auto; gap: 7px; padding: 28px 10px 0; }
  body[data-controls="type"] .rail-item {
    min-height: 73px;
    padding: 8px 11px;
    grid-template-rows: 37px 1fr;
    border-left-width: 2px;
    color: #e6ebdc;
  }
  body[data-controls="type"] .rail-item:not(.is-current):not(:hover) { opacity: 1; }
  body[data-controls="type"] .rail-item>span:nth-child(2) { font-size: 13px; }
  .rail-icon, .rail-icon img, .rail-icon svg { width: 35px; height: 35px; }
  .rail-arrow { width: 17px; height: 17px; opacity: .45; }
  .rail-item:hover .rail-arrow, .rail-item.is-current .rail-arrow { opacity: .9; }
  .rail-bottom {
    position: static;
    top: auto;
    margin: 28px 14px 24px;
    padding-top: 16px;
    border-top-color: #899675;
    font-size: 11px;
  }
  .rail-bottom-models { gap: 0; margin: 7px 0 10px; }
  .rail-bottom-models a { min-height: 34px; border-bottom-color: rgba(223,232,206,.18); font-size: 13px; }
  .rail-bottom-models svg { width: 14px; height: 14px; opacity: .5; }
  .rail-bottom-models a:hover svg { opacity: 1; }
  .rail-bottom-link { font-size: 12px; }

  /* The headline and one product hold the first read; supporting slogans recede. */
  .hero-meta { color: #59654e; font-size: 10px; letter-spacing: .15em; }
  .hero-meta-right { opacity: .57; }
  .hero-meta-right i { display: none; }
  .hero-copy p { display: none; }
  .hero-copy .rule { width: 38px; height: 3px; margin: 26px 0 27px; }
  body[data-controls="type"] .hero-action { font-size: clamp(20px, 1.75vw, 27px); }
  .hero-product { right: 12px; width: calc(70% - 24px); }

  /* The right column is an editorial preview, without a competing CTA bar. */
  .opening-showcase { gap: 8px; padding-top: 8px; }
  .feature-card, .mini-card { background: #eeede6; }
  .feature-card img { width: 76%; height: 65%; left: 12%; top: 16%; }
  .mini-card img { width: 88%; height: 56%; left: 6%; top: 25%; }
  .feature-card .card-label, .mini-card .card-label {
    top: 17px;
    left: 17px;
    font: 11px/1.2 Onest,sans-serif;
    letter-spacing: .12em;
    color: #46543b;
  }
  .feature-card .card-label small {
    margin-top: 5px;
    font: 19px/1 Russo,sans-serif;
    letter-spacing: -.025em;
    color: #20271d;
  }
  .mini-card .card-label { top: 13px; left: 12px; font-size: 10px; }
  .mini-card .card-label small {
    margin-top: 3px;
    font: 13px/1 Russo,sans-serif;
    letter-spacing: -.015em;
    color: #20271d;
  }
  body[data-controls="type"] .opening-showcase .card-link {
    height: 30px;
    bottom: 13px;
    left: 17px;
    right: 17px;
    padding: 0;
    border: 0;
    color: #3f4e35;
    font: 12px/1 Onest,sans-serif;
    font-weight: 650;
    opacity: .94;
  }
  body[data-controls="type"] .opening-showcase .mini-card .card-link {
    height: 25px;
    bottom: 9px;
    left: 12px;
    right: 12px;
    font-size: 11px;
  }
  body[data-controls="type"] .opening-showcase .card-link .control-arrow { width: 21px; height: 18px; }
  .opening-showcase :is(.feature-card,.mini-card):hover .card-link,
  .opening-showcase :is(.feature-card,.mini-card):focus-visible .card-link { opacity: 1; }
  .fastener-card img {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    object-position: center;
    filter: brightness(.75) saturate(.85);
  }
  .fastener-card::before {
    background: linear-gradient(180deg, rgba(17,23,14,.72), transparent 57%);
  }
  body[data-controls="type"] .fastener-card .card-label,
  body[data-controls="type"] .fastener-card .card-link { color: #fff; }

  .material-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(18,24,15,.77), rgba(18,24,15,.12) 75%);
    pointer-events: none;
  }
  .material-photo>img { object-position: center 57%; filter: brightness(.82) saturate(.9); }
  .material-photo-copy { z-index: 2; }
  .field-scene-label {
    left: 70.45%;
    top: 47.4%;
    width: 4.6%;
    height: auto;
    transform: translate(-50%, -50%) rotate(10deg) skewY(-3deg);
    filter: brightness(.75) saturate(.72);
  }

  /* One selected marker in an otherwise open specimen strip. */
  .hero-bottom { align-items: center; }
  .hero-variant-info strong { font-size: 17px; }
  body[data-controls="type"] .variant-choice {
    border-bottom-width: 2px;
    border-bottom-color: transparent;
    opacity: .58;
    transition: opacity .2s, border-color .2s;
  }
  body[data-controls="type"] .variant-choice img { opacity: .8; }
  body[data-controls="type"] .variant-choice:hover,
  body[data-controls="type"] .variant-choice.is-active { opacity: 1; }
  body[data-controls="type"] .variant-choice.is-active { border-bottom-color: var(--olive); }
  body[data-controls="type"] .variant-choice.is-active img { opacity: 1; }
  body[data-controls="type"] .hero-direction { color: #5c694f; }
  body[data-controls="type"] .hero-direction:hover { color: var(--olive); }

  /* A complete model name and image remain one unit; separation happens after. */
  .product-ribbon-set { gap: 0; padding-right: 0; }
  .product-ribbon-unit { gap: 16px; padding: 0 28px; }
  .product-ribbon-unit::after {
    content: "";
    width: 1px;
    height: 34px;
    margin-left: 14px;
    background: rgba(32,42,29,.3);
  }
}

@media (min-width: 901px) and (max-width: 1250px) {
  .hero-product { right: 12px; width: calc(60% - 24px); }
}

@media (min-width: 1251px) {
  .hero-product { right: 12px; width: min(calc(100% - 365px), 54%); }
}
