/* Commercial search — hero. Only shown when <html> has .cmx-mode (set in the page head). */

.cmx-hero{
  display:none;
}

html.cmx-mode .cmx-hero{
  display:block;
}

html.cmx-mode .hero,
html.cmx-mode .market-bar{
  display:none;
}

.cmx-hero{
  --cmx-gold:#D8B36A;
  --cmx-gold-light:#ecd08f;
  --cmx-gold-deep:#c99a48;
  --cmx-shell:min(1440px, 92vw);
  --cmx-photo-bleed-top:104px;
  --cmx-photo-bleed-bottom:116px;
  position:relative;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 14% 32%, rgba(216,179,106,.07), transparent 32%),
    linear-gradient(180deg, #032d26 0%, #063d34 55%, #074334 100%);
}

.cmx-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  opacity:.45;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size:90px 90px;
}

.cmx-shell{
  position:relative;
  z-index:5;
  width:var(--cmx-shell);
  margin:0 auto;
  padding:var(--cmx-photo-bleed-top) 0 40px;
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "copy visual"
    "search search"
    "features features";
  column-gap:28px;
}

/* ---------- Copy ---------- */

.cmx-copy{
  grid-area:copy;
  position:relative;
  z-index:3;
  padding:40px 0 48px;
}

.cmx-lockup{
  display:inline-block;
  margin-bottom:46px;
}

.cmx-lockup img{
  display:block;
  width:min(380px, 82%);
  height:auto;
}

.cmx-copy h1{
  margin:0 0 26px;
  font-family:"DM Serif Display", Georgia, "Times New Roman", serif;
  font-weight:400;
  font-size:clamp(54px, 6vw, 98px);
  line-height:.98;
  letter-spacing:-.5px;
  overflow-wrap:break-word;
}

.cmx-copy h1 span{
  display:block;
}

.cmx-gold{
  color:var(--cmx-gold);
  background:linear-gradient(180deg, var(--cmx-gold-light) 10%, var(--cmx-gold-deep) 95%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.cmx-sub{
  max-width:540px;
  margin:0;
  font-size:19px;
  line-height:1.6;
  color:#dde6e2;
}

/* ---------- Photo ---------- */

.cmx-visual{
  grid-area:visual;
  position:relative;
  z-index:2;
  min-height:520px;
}

.cmx-photo{
  position:absolute;
  top:calc(-1 * var(--cmx-photo-bleed-top));
  bottom:calc(-1 * var(--cmx-photo-bleed-bottom));
  left:-26%;
  right:calc((100vw - var(--cmx-shell)) / -2);
  margin:0;
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 38%);
  mask-image:linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 18%, #000 38%);
}

.cmx-photo::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(0deg, #063d34 0%, rgba(6,61,52,.55) 18%, rgba(6,61,52,0) 42%),
    linear-gradient(180deg, rgba(3,45,38,.55) 0%, rgba(3,45,38,0) 24%),
    rgba(3,40,33,.12);
}

.cmx-slides{
  position:absolute;
  inset:0;
}

.cmx-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 1.4s ease;
}

.cmx-slide.is-active{
  opacity:1;
}

.cmx-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.05);
  transition:transform 7s ease-out;
}

.cmx-slide.is-active img{
  transform:scale(1);
}

.cmx-caption{
  position:absolute;
  right:20px;
  bottom:calc(var(--cmx-photo-bleed-bottom) + 16px);
  z-index:3;
  max-width:70%;
  text-align:right;
  color:rgba(255,255,255,.92);
  font-size:12px;
  line-height:1.5;
  text-shadow:0 1px 6px rgba(0,0,0,.6);
}

.cmx-caption-place{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:600;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.cmx-caption-place svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:var(--cmx-gold);
  stroke-width:2;
}

.cmx-caption-credit{
  display:block;
  font-size:10.5px;
  color:rgba(255,255,255,.7);
}

.cmx-caption a{
  color:inherit;
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,.35);
  text-underline-offset:2px;
}

/* ---------- Search (the page's own search box, moved here) ---------- */

.cmx-search{
  grid-area:search;
  position:relative;
  z-index:4;
  margin-top:6px;
}

.cmx-hero .search-box{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  margin:0;
  padding:8px 8px 8px 26px;
  overflow:visible;
  border-radius:999px;
  background:rgba(250,247,240,.97);
  border:1px solid rgba(216,179,106,.55);
  box-shadow:0 24px 60px rgba(0,0,0,.3);
}

.cmx-search-icon{
  flex:0 0 24px;
  width:24px;
  height:24px;
  fill:none;
  stroke:#0b3b31;
  stroke-width:2;
  stroke-linecap:round;
}

.cmx-hero .search-box input{
  flex:1 1 auto;
  min-width:0;
  padding:18px 6px;
  border:0;
  background:transparent;
  font-size:18px;
  color:#16352f;
}

.cmx-hero .search-box input::placeholder{
  color:#5d6b66;
}

.cmx-hero .search-voice{
  width:48px;
  height:48px;
  min-height:0;
  border:0;
  border-radius:50%;
}

.cmx-hero .search-box .search-submit{
  flex:0 0 auto;
  padding:20px 30px;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg, #e3c480, #cfa356);
  color:#0b2e26;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
  transition:filter .2s ease;
}

.cmx-hero .search-box .search-submit:hover,
.cmx-hero .search-box .search-submit:focus-visible{
  filter:brightness(1.06);
}

.cmx-hero .search-help{
  margin:14px 0 0 30px;
  font-size:13px;
  line-height:1.6;
  color:rgba(255,255,255,.7);
}

/* ---------- Sector tiles ---------- */

.cmx-features{
  grid-area:features;
  list-style:none;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  margin:46px 0 0;
  padding:0;
}

.cmx-features li{
  border-left:1px solid rgba(216,179,106,.32);
}

.cmx-features li:first-child{
  border-left:0;
}

.cmx-tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  height:100%;
  padding:10px 20px 8px;
  border:0;
  border-radius:14px;
  background:none;
  color:#fff;
  font:inherit;
  text-align:center;
  cursor:pointer;
  transition:background .2s ease;
}

.cmx-tile:hover,
.cmx-tile:focus-visible{
  background:rgba(255,255,255,.06);
  outline:none;
}

.cmx-tile[aria-pressed="true"]{
  background:rgba(216,179,106,.12);
}

.cmx-tile svg{
  display:block;
  width:44px;
  height:44px;
  margin:0 auto 14px;
  fill:none;
  stroke:var(--cmx-gold);
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.cmx-tile-title{
  display:block;
  margin:0 0 8px;
  font-size:13px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
}

.cmx-tile[aria-pressed="true"] .cmx-tile-title{
  color:var(--cmx-gold);
}

.cmx-tile-text{
  display:block;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.78);
}

/* ---------- Sector strip ---------- */

.cmx-strip{
  position:relative;
  z-index:5;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  row-gap:10px;
  padding:22px 4%;
  background:#032720;
  border-top:1px solid rgba(216,179,106,.18);
}

.cmx-strip button{
  padding:3px 30px;
  border:0;
  border-left:1px solid rgba(216,179,106,.6);
  border-radius:0;
  background:none;
  color:#e9e4d6;
  font:inherit;
  font-size:14px;
  letter-spacing:3px;
  text-transform:uppercase;
  cursor:pointer;
}

.cmx-strip button:first-child{
  border-left:0;
}

.cmx-strip button:hover,
.cmx-strip button:focus-visible,
.cmx-strip button[aria-pressed="true"]{
  color:var(--cmx-gold);
}

.cmx-strip button[aria-pressed="true"]{
  text-decoration:underline;
  text-underline-offset:6px;
  text-decoration-thickness:1px;
}

/* ---------- Tablet ---------- */

@media (max-width:1180px){
  .cmx-tile{
    padding:10px 12px 8px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width:900px){
  .cmx-shell{
    width:calc(100% - 36px);
    padding:126px 0 30px;
    grid-template-columns:minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "search"
      "visual"
      "features";
  }

  .cmx-copy{
    padding:6px 0 24px;
  }

  .cmx-lockup{
    margin-bottom:30px;
  }

  .cmx-lockup img{
    width:250px;
  }

  .cmx-copy h1{
    margin-bottom:18px;
    font-size:clamp(44px, 12.4vw, 64px);
    letter-spacing:0;
  }

  .cmx-sub{
    font-size:16px;
  }

  .cmx-hero .search-box{
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px;
    padding:8px 8px 8px 18px;
    border-radius:24px;
  }

  .cmx-hero .search-box input{
    flex:1 1 0;
    padding:14px 4px;
    font-size:16px;
  }

  .cmx-hero .search-voice{
    width:44px;
    height:44px;
    border-top:0;
  }

  .cmx-hero .search-box .search-submit{
    flex:1 1 100%;
    padding:16px 18px;
    border-radius:18px;
    font-size:15px;
  }

  .cmx-hero .search-help{
    margin:12px 6px 0;
    font-size:12.5px;
  }

  .cmx-visual{
    min-height:0;
    margin-top:28px;
  }

  .cmx-photo{
    position:relative;
    inset:auto;
    height:250px;
    border-radius:18px;
    -webkit-mask-image:none;
    mask-image:none;
  }

  .cmx-photo::after{
    background:
      linear-gradient(0deg, rgba(6,61,52,.55) 0%, rgba(6,61,52,0) 40%),
      linear-gradient(180deg, rgba(3,45,38,.6) 0%, rgba(3,45,38,0) 40%);
  }

  .cmx-caption{
    top:12px;
    left:14px;
    right:auto;
    bottom:auto;
    max-width:calc(100% - 28px);
    text-align:left;
  }

  .cmx-features{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px 10px;
    margin-top:30px;
  }

  .cmx-features li{
    border-left:0;
    border-top:1px solid rgba(216,179,106,.28);
    padding-top:8px;
  }

  .cmx-tile{
    padding:10px 6px 8px;
  }

  .cmx-tile svg{
    width:36px;
    height:36px;
    margin-bottom:10px;
  }

  .cmx-tile-title{
    font-size:12px;
    letter-spacing:1.5px;
  }

  .cmx-tile-text{
    font-size:13px;
  }

  .cmx-strip{
    padding:18px 10px;
  }

  .cmx-strip button{
    padding:3px 12px;
    font-size:12px;
    letter-spacing:2px;
  }
}

@media (prefers-reduced-motion:reduce){
  .cmx-slide,
  .cmx-slide img,
  .cmx-tile{
    transition:none;
  }

  .cmx-slide img{
    transform:none;
  }
}
