/* Layout fidelity pass based on accepted-reference.png */
@media (min-width: 901px) {
  header {
    height: 112px;
    padding: 0 28px;
    align-items: center;
  }

  header .brand {
    min-width: 270px;
  }

  header .brand::before {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  header .brand b {
    font-size: 23px;
    letter-spacing: .02em;
  }

  header .brand small {
    font-size: 10px;
    letter-spacing: .18em;
  }

  header nav {
    gap: 42px;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 520px;
  }

  .header-actions .search {
    width: 230px;
  }

  .langs {
    flex-basis: 100%;
    justify-content: flex-end;
    order: 5;
    height: 26px;
  }

  .hero {
    min-height: 690px;
    grid-template-columns: 46% 54%;
  }

  .hero-copy {
    padding: 74px 56px;
  }

  .hero-copy::before {
    width: min(350px, 88%);
    height: 148px;
    margin-bottom: 26px;
    background-size: 100% auto;
    background-position: center bottom;
  }

  .hero h1 {
    max-width: 500px;
    margin: 0;
    color: #38506b;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.55;
  }

  .hero p {
    max-width: 520px;
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-buttons,
  .hero-actions {
    margin-top: 28px;
  }

  .hero-photo {
    min-height: 690px;
  }

  .hero-photo::before {
    inset: auto 0 0 0;
    height: 56%;
    border: 0;
    border-left: 38px solid var(--jx-navy);
    border-bottom: 34px solid var(--jx-navy);
    clip-path: polygon(19% 0, 25% 9%, 32% 0, 32% 88%, 100% 88%, 100% 100%, 18% 100%, 18% 24%, 0 46%, 0 37%);
    background: var(--jx-navy);
  }

  .hero::after {
    left: 43%;
    top: -2%;
    width: 70px;
    height: 74%;
    transform: skewX(-35deg);
  }

  .hero-photo::after {
    display: none;
  }

  .category-rail {
    display: none;
  }

  .products {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 38px;
    padding: 56px 30px 56px 0;
    background: #fff;
  }

  .products::before,
  .products::after {
    display: none;
  }

  .products .section-head,
  .products .catalog-meta,
  .products .result,
  .products .product-grid,
  .products .load-more {
    grid-column: 2;
  }

  .products .section-head {
    grid-row: 1;
    margin: 0 0 18px;
  }

  .products .section-head h2 {
    margin: 0;
    font-size: 42px;
    letter-spacing: -.04em;
  }

  .products .catalog-meta {
    grid-row: 2;
    margin-bottom: 18px;
  }

  .products .filterbar {
    grid-column: 1;
    grid-row: 1 / span 8;
    align-self: stretch;
    min-width: 0;
    margin: -56px 0 -56px;
    padding: 54px 24px 130px;
    color: #fff;
    background: var(--jx-navy);
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow: hidden;
  }

  .products .filterbar::before {
    content: "Browse Categories";
    display: block;
    color: #fff;
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
  }

  .products .filterbar::after {
    content: "";
    position: absolute;
    left: -20px;
    bottom: 26px;
    width: 190px;
    height: 34px;
    background: var(--jx-gold);
    transform: rotate(-45deg);
    transform-origin: left center;
  }

  .products .filterbar button {
    width: 100%;
    min-height: 50px;
    color: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(255,255,255,.18);
    justify-content: space-between;
    padding: 0;
    text-align: left;
    box-shadow: none;
  }

  .products .filterbar button:hover,
  .products .filterbar button.active {
    color: #fff;
    background: transparent;
    box-shadow: inset 3px 0 var(--jx-gold);
    padding-left: 12px;
  }

  .products .filterbar button em {
    color: rgba(255,255,255,.62);
    background: transparent;
  }

  .products .result {
    grid-row: 3;
  }

  .products .product-grid {
    grid-row: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .products .product-grid article {
    border-color: #d9e1ea;
  }

  .products .product-img {
    aspect-ratio: 1.05;
  }

  .products .load-more {
    justify-self: center;
  }

  .promise {
    min-height: 174px;
    display: grid;
    grid-template-columns: 190px minmax(320px, 600px) repeat(4, minmax(100px, 1fr));
    gap: 26px;
    align-items: center;
    padding: 34px 54px;
  }

  .promise::before {
    font-size: 118px;
  }

  .promise > div:first-of-type h2 {
    margin: 0 0 8px;
    font-size: 28px;
  }

  .promise > div:first-of-type p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.82);
    line-height: 1.6;
  }

  .promise > div:not(:first-of-type) {
    align-self: stretch;
    border-left: 1px solid rgba(255,255,255,.18);
    padding-left: 18px;
  }

  .about {
    min-height: 430px;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
    padding: 70px 7vw;
  }

  .about-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .about-visual {
    grid-column: 2;
    grid-row: 1;
    min-height: 330px;
    background: #fff;
    border: 0;
  }

  .about-visual::after {
    width: min(78%, 340px);
  }

  footer .footer-main {
    grid-template-columns: 1.25fr .8fr .8fr 1fr;
    padding: 46px 7vw;
  }

  footer .contact-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    padding: 0 7vw;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  header nav {
    display: flex;
    gap: 22px;
  }

  header .brand {
    min-width: 220px;
  }

  header .brand b {
    font-size: 18px;
  }

  .header-actions .search {
    display: none;
  }

  .products {
    grid-template-columns: 220px minmax(0, 1fr);
    column-gap: 26px;
  }

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

  .promise {
    grid-template-columns: 120px minmax(300px, 1fr) repeat(2, minmax(120px, .6fr));
  }

  .promise > div:nth-last-child(-n+2) {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-copy::before {
    width: min(310px, 92%);
    height: 130px;
    background-size: 100% auto;
    background-position: center bottom;
  }

  .hero h1 {
    color: #38506b;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.03em;
  }

  .category-rail {
    display: none;
  }

  .products .filterbar {
    overflow-x: auto;
  }
}
