/* The new company home page (company-home.js). Everything is scoped to html.ch-on, so the classic home is untouched when it is off. */

.ch-site,
.ch-dialog-top,
.ch-backdrop{
  display: none;
}

html.ch-on{
  --ch-ink: #0c1424;
  --ch-ink-2: #3b4658;
  --ch-mute: #6a7486;
  --ch-line: #e6e3dc;
  --ch-paper: #ffffff;
  --ch-tint: #f6f3ee;
  --ch-navy: #102d4e;
  --ch-navy-2: #1c4471;
  --ch-gold: #f2c77b;
  --ch-gold-ink: #9a6614;
  --ch-radius: 20px;
  --ch-shadow: 0 1px 2px rgba(12, 20, 36, 0.06), 0 12px 32px -12px rgba(12, 20, 36, 0.18);
  --ch-shadow-lg: 0 2px 4px rgba(12, 20, 36, 0.06), 0 32px 64px -24px rgba(12, 20, 36, 0.35);
  --ch-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ch-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ch-wrap: min(1200px, 100% - 48px);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce){
  html.ch-on{
    scroll-behavior: auto;
  }
}

/* Big screens (~20" and up): let the content use more of the width */
@media (min-width: 1600px){
  html.ch-on{
    --ch-wrap: min(1440px, 100% - 128px);
  }
}

/* ---------- Hide the classic home ---------- */

html.ch-on body.ra-portal.ra-portal--home{
  background: var(--ch-paper);
  color: var(--ch-ink);
  font-family: var(--ch-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html.ch-on body.ra-portal.ra-portal--home .ra-portal__header,
html.ch-on body.ra-portal.ra-portal--home .ra-home__hero,
html.ch-on body.ra-portal.ra-portal--home .ra-home__roles,
html.ch-on body.ra-portal.ra-portal--home .ra-home__pointer{
  display: none !important;
}

html.ch-on body.ra-portal.ra-portal--home .ra-portal__signin{
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

html.ch-on body.ra-portal.ra-portal--home .ra-home__stage{
  position: static;
  width: auto;
  height: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  background: none;
}

html.ch-on .ch-site{
  display: block;
}

/* ---------- Shared pieces ---------- */

.ch-site{
  font-family: var(--ch-sans);
  color: var(--ch-ink);
}

.ch-site a{
  color: inherit;
  text-decoration: none;
}

.ch-ico{
  flex: none;
}

.ch-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ch-gold-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ch-eyebrow--light{
  color: var(--ch-gold);
}

.ch-pulse{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent);
  animation: ch-pulse 2.4s ease-out infinite;
}

@keyframes ch-pulse{
  70%{ box-shadow: 0 0 0 10px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}

.ch-h2{
  margin: 0;
  font-family: var(--ch-serif);
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.ch-h2 em,
.ch-hero__title em{
  font-style: italic;
  color: var(--ch-navy-2);
}

.ch-lead{
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--ch-ink-2);
  font-size: 1.1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.ch-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ch-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 0.95rem/1 var(--ch-sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ch-btn:hover{
  transform: translateY(-1px);
}

.ch-btn:focus-visible,
.ch-door:focus-visible,
.ch-home:focus-visible,
.ch-tab:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--ch-gold) 80%, white);
  outline-offset: 3px;
}

.ch-btn--sm{
  height: 38px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.ch-btn--lg{
  height: 54px;
  padding: 0 26px;
  font-size: 1rem;
}

.ch-btn--primary{
  background: var(--ch-navy);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(16, 45, 78, 0.6);
}

.ch-btn--primary:hover{
  background: var(--ch-navy-2);
}

.ch-btn--light{
  background: #fff;
  color: var(--ch-ink);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

.ch-btn--glass{
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.ch-btn--glass:hover{
  background: rgba(255, 255, 255, 0.2);
}

.ch-btn--outline{
  border-color: var(--ch-line);
  background: #fff;
  color: var(--ch-ink);
}

.ch-btn--outline:hover{
  border-color: var(--ch-ink);
}

/* ---------- Top bar ---------- */

.ch-nav{
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 calc((100% - var(--ch-wrap)) / 2);
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.ch-nav.is-solid,
.ch-nav.is-open{
  background: color-mix(in srgb, #fff 86%, transparent);
  color: var(--ch-ink);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--ch-line);
}

.ch-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.ch-brand__mark{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--ch-navy-2), var(--ch-navy));
  color: var(--ch-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ch-brand__name{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-nav__links{
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.ch-nav__links .ch-nav__link{
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.ch-nav__links :is(a, .ch-nav__link){
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.88;
  transition: background-color 0.18s ease, opacity 0.18s ease;
}

.ch-nav__links :is(a, .ch-nav__link):hover{
  background: color-mix(in srgb, currentColor 10%, transparent);
  opacity: 1;
}

.ch-nav__end{
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-nav:not(.is-solid):not(.is-open) .ch-btn--primary{
  background: #fff;
  color: var(--ch-ink);
  box-shadow: none;
}

.ch-nav__burger{
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.ch-hero{
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100svh, 1000px);
  padding: 128px 0 40px;
  color: #fff;
  overflow: hidden;
}

/* Navy texture: warm and cool glows, a faint blueprint grid and fine grain. */
.ch-hero__bg{
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(55% 65% at 88% 18%, rgba(242, 199, 123, 0.2), transparent 62%),
    radial-gradient(50% 60% at 6% 96%, rgba(84, 134, 196, 0.32), transparent 62%),
    radial-gradient(70% 80% at 62% 115%, rgba(28, 68, 113, 0.9), transparent 70%),
    linear-gradient(160deg, #14385f 0%, #0d2744 55%, #091a30 100%);
}

.ch-hero__bg::before,
.ch-hero__bg::after{
  content: "";
  position: absolute;
  inset: 0;
}

.ch-hero__bg::before{
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 42%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 42%, #000 25%, transparent 78%);
}

.ch-hero__bg::after{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.22;
}

.ch-hero__lines{
  position: absolute;
  z-index: -1;
  right: max(0px, (100% - 1320px) / 2);
  bottom: 0;
  width: min(58vw, 820px);
  height: auto;
  color: var(--ch-gold);
  opacity: 0.2;
}

.ch-hero__lines > *{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ch-draw 2.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ch-draw{
  to{ stroke-dashoffset: 0; }
}

.ch-hero__img{
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  animation: ch-zoom 18s ease-out both;
}

@keyframes ch-zoom{
  from{ transform: scale(1.08); }
  to{ transform: scale(1); }
}

.ch-hero__shade{
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 14, 26, 0.35) 100%);
}

.ch-hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  width: var(--ch-wrap);
  margin: 0 auto auto;
  padding-top: 4vh;
  animation: ch-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ch-hero__copy{
  max-width: 660px;
}

@keyframes ch-rise{
  from{ opacity: 0; transform: translateY(18px); }
  to{ opacity: 1; transform: none; }
}

.ch-hero__title{
  margin: 0;
  font-family: var(--ch-serif);
  font-size: clamp(3.2rem, 1.6rem + 6.4vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.ch-hero__title em{
  color: var(--ch-gold);
}

.ch-hero__lead{
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.ch-hero__lead span{
  color: #fff;
  font-weight: 600;
}

.ch-hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* The four portal doors sit on the hero's lower edge. */
.ch-portals{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: var(--ch-wrap);
  margin: 56px auto 0;
  animation: ch-rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ch-door{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--ch-radius);
  background: linear-gradient(160deg, rgba(40, 66, 100, 0.86), rgba(10, 24, 44, 0.9));
  color: #fff;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(20px) saturate(1.4);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.ch-door:hover{
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(160deg, rgba(52, 82, 120, 0.92), rgba(16, 34, 58, 0.94));
}

.ch-door__icon{
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ch-navy);
}

.ch-door__text{
  display: grid;
  gap: 6px;
}

.ch-door__text strong{
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ch-door__text span{
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ch-door__go{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--ch-gold);
  font-size: 0.88rem;
  font-weight: 600;
}

.ch-door:hover .ch-door__go .ch-ico{
  transform: translateX(3px);
}

.ch-door__go .ch-ico{
  transition: transform 0.2s ease;
}

/* ---------- Hero looks (html[data-ch-look]) ---------- */

/* The right column: product chips, and in "mix" the photo in an arch. */
.ch-hero__aside{
  position: relative;
  height: clamp(300px, 48vh, 480px);
}

.ch-hero__frame{
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px 999px 28px 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.ch-hero__frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 60%;
}

.ch-chip{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ch-ink);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  animation: ch-float 7s ease-in-out infinite;
}

.ch-chip strong{
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ch-chip small{
  color: var(--ch-mute);
  font-size: 0.78rem;
}

.ch-chip__icon{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
}

.ch-chip--rent .ch-chip__icon{
  background: #e5f6ec;
  color: #15803d;
}

.ch-chip--fix .ch-chip__icon{
  background: color-mix(in srgb, var(--ch-gold) 28%, white);
  color: var(--ch-gold-ink);
}

.ch-chip--doc .ch-chip__icon{
  background: color-mix(in srgb, var(--ch-navy) 9%, white);
  color: var(--ch-navy);
}

@keyframes ch-float{
  50%{ transform: translateY(-8px); }
}

/* Texture: three chips staggered over the line drawing. */
.ch-chip--rent{ top: 8%; left: 4%; }
.ch-chip--fix{ top: 40%; right: 0; animation-delay: -2.3s; }
.ch-chip--doc{ bottom: 6%; left: 16%; animation-delay: -4.6s; }

/* Mix: the photo in an arch, two chips overlapping its edges. */
html[data-ch-look="mix"] .ch-hero__frame{
  display: block;
}

html[data-ch-look="mix"] .ch-chip--rent{
  top: auto;
  bottom: 12%;
  left: 0;
}

html[data-ch-look="mix"] .ch-chip--fix{
  top: 12%;
  right: -8px;
}

html[data-ch-look="mix"] .ch-chip--doc{
  display: none;
}

html[data-ch-look="mix"] .ch-hero__lines{
  opacity: 0.12;
}

/* Texture and mix keep the photo off the background. */
html:not([data-ch-look="photo"]) .ch-hero__img{
  display: none;
}

/* Photo: the room full width under a warm cream wash, with dark text. */
html[data-ch-look="photo"] .ch-hero__bg,
html[data-ch-look="photo"] .ch-hero__lines,
html[data-ch-look="photo"] .ch-hero__aside{
  display: none;
}

html[data-ch-look="photo"] .ch-hero__inner{
  grid-template-columns: minmax(0, 1fr);
}

html[data-ch-look="photo"] .ch-hero{
  color: var(--ch-ink);
  background: #faf6ef;
}

html[data-ch-look="photo"] .ch-hero__img{
  object-position: 78% 55%;
}

html[data-ch-look="photo"] .ch-hero__shade{
  background:
    linear-gradient(90deg, rgba(250, 246, 239, 0.97) 0%, rgba(250, 246, 239, 0.9) 30%, rgba(250, 246, 239, 0.35) 54%, rgba(250, 246, 239, 0) 70%),
    linear-gradient(180deg, rgba(250, 246, 239, 0.75) 0%, rgba(250, 246, 239, 0) 18%),
    linear-gradient(0deg, rgba(250, 246, 239, 0.8) 0%, rgba(250, 246, 239, 0) 32%);
}

html[data-ch-look="photo"] .ch-eyebrow--light{
  color: var(--ch-gold-ink);
}

html[data-ch-look="photo"] .ch-hero__title{
  text-shadow: none;
}

html[data-ch-look="photo"] .ch-hero__title em{
  color: var(--ch-gold-ink);
}

html[data-ch-look="photo"] .ch-hero__lead{
  color: var(--ch-ink-2);
}

html[data-ch-look="photo"] .ch-hero__lead span{
  color: var(--ch-ink);
}

html[data-ch-look="photo"] .ch-hero .ch-btn--light{
  background: var(--ch-navy);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(16, 45, 78, 0.6);
}

html[data-ch-look="photo"] .ch-hero .ch-btn--light:hover{
  background: var(--ch-navy-2);
}

html[data-ch-look="photo"] .ch-hero .ch-btn--glass,
html[data-ch-look="photo"] .ch-nav:not(.is-solid):not(.is-open) .ch-btn--glass{
  border-color: rgba(12, 20, 36, 0.18);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ch-ink);
}

html[data-ch-look="photo"] .ch-door{
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ch-ink);
  box-shadow: 0 18px 40px -24px rgba(12, 20, 36, 0.45);
}

html[data-ch-look="photo"] .ch-door:hover{
  border-color: #fff;
  background: rgba(255, 255, 255, 0.92);
}

html[data-ch-look="photo"] .ch-door__icon{
  background: var(--ch-navy);
  color: var(--ch-gold);
}

html[data-ch-look="photo"] .ch-door__text span{
  color: var(--ch-ink-2);
}

html[data-ch-look="photo"] .ch-door__go{
  color: var(--ch-gold-ink);
}

html[data-ch-look="photo"] .ch-nav:not(.is-solid):not(.is-open){
  color: var(--ch-ink);
}

html[data-ch-look="photo"] .ch-nav:not(.is-solid):not(.is-open) .ch-btn--primary{
  background: var(--ch-navy);
  color: #fff;
}

@media (prefers-reduced-motion: reduce){
  .ch-chip,
  .ch-hero__img{
    animation: none;
  }

  .ch-hero__lines > *{
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Laptops (e.g. 14-inch at 125% scaling): the whole hero, doors included, fits the first screen. */
@media (min-width: 861px) and (max-height: 880px){
  .ch-hero{
    padding: 96px 0 24px;
  }

  .ch-hero__inner{
    padding-top: 0;
  }

  .ch-hero .ch-eyebrow{
    margin-bottom: 10px;
  }

  .ch-hero__title{
    font-size: clamp(2.8rem, 9vh, 5.6rem);
  }

  .ch-hero__lead{
    margin-top: 14px;
    font-size: 1.02rem;
  }

  .ch-hero__cta{
    margin-top: 22px;
  }

  .ch-hero__cta .ch-btn--lg{
    height: 48px;
  }

  .ch-hero__aside{
    height: clamp(240px, 42vh, 400px);
  }

  .ch-portals{
    margin-top: 28px;
  }

  .ch-door{
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 14px 16px;
  }

  .ch-door__icon{
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
  }

  .ch-door__text{
    gap: 2px;
  }

  .ch-door__text strong{
    font-size: 1rem;
  }

  .ch-door__text span{
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  /* Only the arrow stays. */
  .ch-door__go{
    margin: 0 0 0 auto;
    font-size: 0;
  }
}

@media (min-width: 861px) and (max-height: 660px){
  .ch-door__text span{
    display: none;
  }
}

/* ---------- Sections ---------- */

/* A menu jump skips the top padding, so the heading lands just under the bar and the content gets the screen. */
.ch-section{
  --ch-pad: clamp(72px, 9vw, 128px);
  padding: var(--ch-pad) 0;
  scroll-margin-top: calc(12px - var(--ch-pad));
}

.ch-site [hidden]{
  display: none !important;
}

.ch-section > *{
  width: var(--ch-wrap);
  margin-right: auto;
  margin-left: auto;
}

.ch-section--tint{
  background: var(--ch-tint);
}

.ch-section__head{
  margin-bottom: clamp(36px, 5vw, 56px);
}

.ch-section__head--row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* Homes */
.ch-homes{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.ch-home{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ch-home:hover{
  transform: translateY(-4px);
  box-shadow: var(--ch-shadow-lg);
}

.ch-home__media{
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #eef1f5, #e2e7ee);
  color: #a3adbb;
}

.ch-home__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ch-home:hover .ch-home__media img{
  transform: scale(1.05);
}

.ch-home__media em{
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ch-ink);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.ch-home__body{
  display: grid;
  gap: 6px;
  padding: 18px 20px 20px;
}

.ch-home__price{
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ch-home__price small{
  margin-left: 2px;
  color: var(--ch-mute);
  font-size: 0.9rem;
  font-weight: 500;
}

.ch-home__addr{
  color: var(--ch-ink-2);
  font-size: 0.95rem;
}

.ch-home__facts{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ch-line);
  color: var(--ch-mute);
  font-size: 0.86rem;
}

.ch-home__facts span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Services */
.ch-services{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ch-line);
  border-radius: var(--ch-radius);
  background: var(--ch-line);
}

.ch-service{
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  transition: background-color 0.2s ease;
}

.ch-service:hover{
  background: #fffdf9;
}

.ch-service__icon{
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ch-gold) 22%, white);
  color: var(--ch-gold-ink);
}

.ch-service h3{
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ch-service p{
  margin: 0;
  color: var(--ch-ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tenants */
.ch-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.ch-split__media{
  position: relative;
  margin: 0;
}

.ch-split__media img{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 55%;
  border-radius: 28px;
  box-shadow: var(--ch-shadow-lg);
}

.ch-float{
  position: absolute;
  right: -20px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--ch-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--ch-shadow-lg);
  backdrop-filter: blur(10px);
}

.ch-float__icon{
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5f6ec;
  color: #15803d;
}

.ch-float strong{
  display: block;
  font-size: 0.95rem;
}

.ch-float small{
  color: var(--ch-mute);
  font-size: 0.8rem;
}

.ch-ticks{
  display: grid;
  gap: 22px;
  margin: 32px 0 36px;
  padding: 0;
  list-style: none;
}

.ch-ticks li{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.ch-ticks li > .ch-ico{
  box-sizing: content-box;
  padding: 11px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ch-navy) 7%, white);
  color: var(--ch-navy);
}

.ch-ticks strong{
  display: block;
  margin-bottom: 2px;
  font-weight: 650;
}

.ch-ticks span{
  color: var(--ch-ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Owner band */
.ch-band{
  padding: 0 0 clamp(72px, 9vw, 128px);
}

.ch-band__inner{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: var(--ch-wrap);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(242, 199, 123, 0.28), transparent 50%),
    linear-gradient(145deg, var(--ch-navy-2), var(--ch-navy) 60%, #0b2039);
  color: #fff;
}

.ch-band h2{
  max-width: 640px;
  margin: 0 0 10px;
  font-family: var(--ch-serif);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

.ch-band h2 span{
  color: var(--ch-gold);
  font-style: italic;
}

.ch-band p{
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

/* Footer */
.ch-foot{
  border-top: 1px solid var(--ch-line);
  background: var(--ch-tint);
}

.ch-foot__grid{
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  width: var(--ch-wrap);
  margin: 0 auto;
  padding: 64px 0 40px;
}

.ch-foot__brand p{
  max-width: 320px;
  margin: 16px 0 0;
  color: var(--ch-mute);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ch-foot h4{
  margin: 0 0 14px;
  color: var(--ch-ink);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ch-foot__grid > div:not(.ch-foot__brand){
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
}

.ch-foot__grid button,
.ch-foot__grid a{
  padding: 0;
  border: 0;
  background: none;
  color: var(--ch-ink-2);
  font: 0.94rem/1.4 var(--ch-sans);
  cursor: pointer;
}

.ch-foot__grid button:hover,
.ch-foot__grid a:hover{
  color: var(--ch-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ch-foot__base{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  width: var(--ch-wrap);
  margin: 0 auto;
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ch-line);
  color: var(--ch-mute);
  font-size: 0.85rem;
}

.ch-foot__base a:hover{
  color: var(--ch-ink);
}

/* ---------- Sign-in dialog (the classic form) ---------- */

html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn.is-open{
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(10vh, 72px) 16px 24px;
  overflow-y: auto;
}

html.ch-on .ch-backdrop{
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(244, 238, 228, 0.62);
  backdrop-filter: blur(14px) saturate(1.1);
  animation: ch-fade 0.2s ease both;
}

@keyframes ch-fade{
  from{ opacity: 0; }
}

/* Two soft panes: the room and a welcome on the left, the form on the right. */
html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn > .ra-home__card{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-content: start;
  width: min(760px, 100%);
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: #fffdf9;
  box-shadow: 0 2px 6px rgba(60, 44, 20, 0.06), 0 40px 90px -30px rgba(60, 44, 20, 0.35);
  font-family: var(--ch-sans);
  animation: ch-pop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

html.ch-on #rwHomeSignIn > .ra-home__card > :not(.ch-signin-art){
  grid-column: 2;
  margin-right: 36px;
  margin-left: 36px;
}

.ch-signin-art{
  display: none;
}

html.ch-on .ch-signin-art{
  position: relative;
  display: block;
  grid-column: 1;
  grid-row: 1 / span 6;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

html.ch-on .ch-signin-art img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 60%;
}

html.ch-on .ch-signin-art figcaption{
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 8px;
  padding: 64px 26px 26px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0) 0%, rgba(255, 253, 249, 0.88) 38%, #fffdf9 100%);
  color: var(--ch-ink);
}

html.ch-on .ch-signin-art .ch-brand{
  margin-bottom: 8px;
  font-size: 0.95rem;
}

html.ch-on .ch-signin-art strong{
  font-family: var(--ch-serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
}

html.ch-on .ch-signin-art figcaption > span:last-child{
  max-width: 300px;
  color: var(--ch-ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}

html.ch-on #rwHomeSignIn .ch-signin-sub{
  margin-top: -12px;
  margin-bottom: 20px;
  color: var(--ch-mute);
  font-size: 0.95rem;
  line-height: 1.5;
}

html.ch-on #rwHomeSignIn #rwSignInForm{
  margin-bottom: 30px;
}

html.ch-on #rwHomeSignIn .ra-home__forgot{
  justify-self: end;
  margin-top: -4px;
  font-size: 0.86rem;
}

@keyframes ch-pop{
  from{ opacity: 0; transform: translateY(12px) scale(0.98); }
}

html.ch-on .ch-dialog-top{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  margin-bottom: 22px;
}

.ch-tabs{
  display: grid;
  flex: 1;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: #f3eee6;
}

.ch-tab{
  height: 32px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ch-mute);
  font: 600 0.82rem/1 var(--ch-sans);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ch-tab[aria-selected="true"]{
  background: #fff;
  color: var(--ch-ink);
  box-shadow: 0 1px 3px rgba(12, 20, 36, 0.12);
}

.ch-dialog-x{
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #f3eee6;
  color: var(--ch-ink-2);
  cursor: pointer;
}

.ch-dialog-x:hover{
  background: #e9e2d6;
}

html.ch-on #rwHomeSignIn .ra-portal__card-title{
  margin: 0 0 16px;
  font-family: var(--ch-serif);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ch-ink);
}

html.ch-on #rwHomeSignIn .ra-portal__field span{
  color: var(--ch-ink-2);
  font-size: 0.85rem;
  font-weight: 600;
}

html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn .ra-portal__field input{
  height: 46px;
  padding: 0 16px;
  border: 1px solid #e6dfd3;
  /* portal.css forces one border colour on every input with !important. */
  border-color: #e6dfd3 !important;
  border-radius: 14px;
  background: #fbf8f3;
  font-family: var(--ch-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn .ra-portal__field input:focus{
  border-color: var(--ch-navy-2) !important;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ch-navy-2) 16%, transparent);
}

html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn .ra-portal__primary-btn{
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--ch-navy);
  color: #fff;
  font: 600 0.98rem/1 var(--ch-sans);
  box-shadow: 0 8px 20px -8px rgba(16, 45, 78, 0.6);
}

html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn .ra-portal__primary-btn:hover{
  background: var(--ch-navy-2);
}

html.ch-on #rwHomeSignIn .ra-home__forgot{
  color: var(--ch-navy-2);
  font-family: var(--ch-sans);
  font-weight: 500;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 1020px){
  .ch-hero__inner{
    grid-template-columns: minmax(0, 1fr);
  }

  .ch-hero__aside{
    display: none;
  }

  .ch-portals{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ch-services{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ch-foot__grid{
    grid-template-columns: 1fr 1fr 1fr;
  }

  .ch-foot__brand{
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px){
  .ch-nav{
    height: 64px;
  }

  .ch-nav__links{
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: #fff;
    box-shadow: 0 16px 30px -16px rgba(12, 20, 36, 0.3);
  }

  .ch-nav.is-open .ch-nav__links{
    display: flex;
  }

  .ch-nav__links :is(a, .ch-nav__link){
    padding: 14px 12px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .ch-nav__burger{
    display: grid;
  }

  .ch-hero__lines{
    width: 92vw;
  }

  html[data-ch-look="photo"] .ch-hero__img{
    object-position: 72% 50%;
  }

  html[data-ch-look="photo"] .ch-hero__shade{
    background:
      linear-gradient(180deg, rgba(250, 246, 239, 0.96) 0%, rgba(250, 246, 239, 0.88) 42%, rgba(250, 246, 239, 0.2) 68%, rgba(250, 246, 239, 0) 80%),
      linear-gradient(0deg, rgba(250, 246, 239, 0.7) 0%, rgba(250, 246, 239, 0) 30%);
  }

  .ch-split{
    grid-template-columns: 1fr;
  }

  .ch-split__media img{
    aspect-ratio: 16 / 11;
  }

  /* Sign in: one column, the room as a soft band on top. */
  html.ch-on body.ra-portal.ra-portal--home #rwHomeSignIn > .ra-home__card{
    grid-template-columns: minmax(0, 1fr);
    width: min(480px, 100%);
  }

  html.ch-on #rwHomeSignIn > .ra-home__card > :not(.ch-signin-art){
    grid-column: 1;
    margin-right: 28px;
    margin-left: 28px;
  }

  html.ch-on .ch-signin-art{
    grid-row: auto;
    min-height: 120px;
  }

  html.ch-on .ch-signin-art figcaption{
    display: none;
  }

  html.ch-on .ch-dialog-top{
    margin-top: 22px;
    margin-bottom: 22px;
  }

  html.ch-on #rwHomeSignIn .ra-portal__card-title{
    font-size: 2.1rem;
  }

  html.ch-on #rwHomeSignIn #rwSignInForm{
    margin-bottom: 28px;
  }

  .ch-float{
    right: 16px;
  }
}

@media (max-width: 560px){
  html.ch-on{
    --ch-wrap: calc(100% - 32px);
  }

  .ch-nav{
    gap: 12px;
    padding-right: 12px;
    padding-left: 16px;
  }

  .ch-hero{
    padding-top: 110px;
  }

  .ch-hero__cta .ch-btn{
    flex: 1 1 100%;
  }

  .ch-portals{
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 40px;
  }

  .ch-door{
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    min-height: 0;
    padding: 16px;
  }

  .ch-door__go{
    display: none;
  }

  .ch-services{
    grid-template-columns: 1fr;
  }

  .ch-foot__grid{
    grid-template-columns: 1fr 1fr;
  }

  .ch-tab{
    font-size: 0.76rem;
  }

  html.ch-on #rwHomeSignIn > .ra-home__card > :not(.ch-signin-art){
    margin-right: 20px;
    margin-left: 20px;
  }
}

/* Same laptops: Owners and Tenants each fit one screen after a menu jump. */
@media (min-width: 861px) and (max-height: 880px){
  .ch-section{
    --ch-pad: 64px;
  }

  .ch-section__head{
    margin-bottom: 24px;
  }

  .ch-section .ch-eyebrow{
    margin-bottom: 8px;
  }

  .ch-section .ch-h2{
    font-size: clamp(2rem, 6.2vh, 2.9rem);
  }

  .ch-lead{
    margin-top: 10px;
    font-size: 1rem;
  }

  .ch-service{
    padding: 20px 24px;
  }

  .ch-service__icon{
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .ch-service h3{
    margin-bottom: 4px;
    font-size: 1.02rem;
  }

  .ch-service p{
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .ch-split__media img{
    aspect-ratio: auto;
    height: calc(100svh - 120px);
  }

  .ch-ticks{
    gap: 14px;
    margin: 22px 0 26px;
  }
}

/* ---------- The company's own page (Home page editor, company-home-site.js) ---------- */

/* A first visit waits a moment for the company's words instead of flashing the built-in ones. */
html.ch-wait .ch-hero__inner,
html.ch-wait .ch-hero__img,
html.ch-wait .ch-portals{
  opacity: 0;
}

/* Words removed: the text goes, and a card or button with nothing left goes with it. */
html:not(.che-on) .ch-site [data-ch-empty]{
  display: none !important;
}

.ch-site [data-ch-align="left"]{ text-align: left; }
.ch-site [data-ch-align="center"]{ text-align: center; }
.ch-site [data-ch-align="right"]{ text-align: right; }

/* Short lines (lead, titles) move with their words, so centred text sits in the middle of the page. */
.ch-site [data-ch-align="center"]:not(span){
  margin-inline: auto;
}

.ch-site [data-ch-align="right"]:not(span){
  margin-left: auto;
  margin-right: 0;
}

.ch-site span[data-ch-align]{
  display: block;
}

.ch-site .ch-eyebrow:has(> [data-ch-align]){
  display: flex;
}

.ch-site .ch-eyebrow:has(> [data-ch-align="center"]){ justify-content: center; }
.ch-site .ch-eyebrow:has(> [data-ch-align="right"]){ justify-content: flex-end; }

.ch-site .ch-hero__copy:has(> .ch-hero__title[data-ch-align="center"]){
  margin-inline: auto;
}

.ch-site .ch-hero__copy:has(> .ch-hero__title[data-ch-align="right"]){
  margin-left: auto;
}

.ch-site .ch-hero__copy:has(> .ch-hero__title[data-ch-align="center"]) .ch-hero__cta{
  justify-content: center;
}

.ch-site .ch-hero__copy:has(> .ch-hero__title[data-ch-align="right"]) .ch-hero__cta{
  justify-content: flex-end;
}

/* A chosen colour covers the whole text, the italic part included. */
.ch-site [data-ch-color] *{
  color: inherit !important;
}

ch-tx{
  display: inline;
}

/* Photo fade: the wash comes from the left (built in), the right, or not at all. */
@media (min-width: 861px){
  html[data-ch-look="photo"] .ch-hero[data-ch-fade="right"] .ch-hero__shade{
    background:
      linear-gradient(270deg, rgba(250, 246, 239, 0.97) 0%, rgba(250, 246, 239, 0.9) 30%, rgba(250, 246, 239, 0.35) 54%, rgba(250, 246, 239, 0) 70%),
      linear-gradient(180deg, rgba(250, 246, 239, 0.75) 0%, rgba(250, 246, 239, 0) 18%),
      linear-gradient(0deg, rgba(250, 246, 239, 0.8) 0%, rgba(250, 246, 239, 0) 32%);
  }

  html[data-ch-look="photo"] .ch-hero[data-ch-fade="right"] .ch-hero__img{
    object-position: 22% 55%;
  }
}

html[data-ch-look="photo"] .ch-hero[data-ch-fade="none"] .ch-hero__shade{
  background: none;
}

.ch-split__media[data-ch-fade="left"] img{
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  box-shadow: none;
}

.ch-split__media[data-ch-fade="right"] img{
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(270deg, transparent 0%, #000 45%);
  box-shadow: none;
}

/* Text boxes the company placed: anywhere in their part of the page. */
.ch-site [data-ch-zone]{
  position: relative;
}

.ch-box{
  position: absolute;
  z-index: 4;
  box-sizing: border-box;
  min-width: 140px;
  color: inherit;
  font-family: var(--ch-sans);
  font-size: 1.05rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.ch-box--light{
  padding: 18px 22px;
  border: 1px solid rgba(12, 20, 36, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ch-ink);
  box-shadow: var(--ch-shadow);
}

.ch-box--dark{
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(12, 20, 36, 0.84);
  color: #fff;
  box-shadow: var(--ch-shadow);
}

/* On a phone a box joins the page under its part's content, full width. */
@media (max-width: 860px){
  .ch-box{
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    margin: 20px 24px 0;
  }

  .ch-hero > .ch-box{
    margin-top: 16px;
  }

  .ch-section > .ch-box,
  .ch-band > .ch-box,
  .ch-foot > .ch-box{
    width: var(--ch-wrap) !important;
    margin: 24px auto 0;
  }

  .ch-foot > .ch-box{
    margin-bottom: 24px;
  }
}
