/* Homepage motion: bounded card tilt, one-time section reveals and a native gallery. */
body:not(.evaluation-page) .hero > div:first-child { container-type: inline-size; }
body:not(.evaluation-page) .hero h1 {
  font-size: clamp(21px, 7.2cqi, 54px);
  line-height: 1.12;
  max-width: none;
  white-space: nowrap;
}
.ways { background: var(--spruce); }
.ways .wrap { gap: 20px; padding-block: 28px; }
.service-card-frame { perspective: 900px; min-width: 0; }
.service-card-frame .way {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 265px;
  padding: 30px 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transform-style: preserve-3d;
  transform: rotateX(var(--card-x, 0deg)) rotateY(var(--card-y, 0deg));
  transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s;
}
.service-card-frame .way h2 { color: var(--birch); font-size: 33px; }
.service-card-frame .way p { margin-top: 14px; }
.service-card-frame .way .go {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 25px;
  color: var(--birch);
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
  transform: translateZ(17px);
}
.service-card-frame .way:hover,
.service-card-frame .way:focus-visible {
  border-color: #adb4a9;
  box-shadow: 0 16px 32px -19px #26392950;
}
.service-card-frame .way:focus-visible { transform: translateY(-3px); }
.service-card-frame .way .go::after { content: ' ↗'; display: inline-block; margin-left: 5px; }

.property-gallery .gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 25px; }
.property-gallery .gallery-heading h2 { font-size: clamp(36px, 4.2vw, 54px); }
.property-gallery .gallery-heading .eyebrow { margin-bottom: 12px; }
.gallery-nav { display: none; align-items: center; flex: 0 0 auto; gap: 10px; }
.gallery-ready .gallery-nav { display: flex; }
.gallery-nav button {
  width: 46px;
  height: 46px;
  border: 1px solid #c4c8bc;
  border-radius: 50%;
  background: #fff;
  color: var(--birch);
  font: 400 23px/1 var(--display);
  cursor: pointer;
}
.gallery-nav button:hover:not(:disabled) { background: #efefe9; border-color: #959e8d; }
.gallery-nav button:disabled { opacity: .35; cursor: default; }
.gallery-position { min-width: 42px; text-align: center; font: 500 14px/1 var(--display); font-variant-numeric: tabular-nums; }
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  border-radius: 10px;
}
.gallery-ready .gallery-track { scrollbar-width: none; }
.gallery-ready .gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-property {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  height: 100%;
}
.gallery-photo { overflow: hidden; background: #e7eae2; }
.gallery-photo img { width: 100%; height: 405px; object-fit: cover; transition: transform .55s ease; }
.gallery-details { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.gallery-location { font: 500 12px/1.4 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--birch-dim); margin-bottom: 10px; }
.gallery-details .status { font-size: 13px; color: var(--birch-dim); }
.gallery-details h3 { font-family: var(--display); font-size: 29px; line-height: 1.15; letter-spacing: -.02em; margin: 12px 0; }
.gallery-details > p:not(.gallery-location):not(.price) { font-size: 15px; color: var(--birch-dim); line-height: 1.5; }
.gallery-details .price { font: 600 28px/1.2 var(--display); margin-top: 21px; color: var(--birch); }
.gallery-details .more { align-self: flex-start; margin-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 5px; font: 500 14px/1.4 var(--display); }
.gallery-search { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.gallery-search p { color: var(--birch-dim); font-size: 15px; }
.gallery-search > a { flex: 0 0 auto; color: var(--birch); font: 500 14px/1.4 var(--display); text-underline-offset: 5px; }
.gallery-property:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .gallery-property:hover .gallery-photo img { transform: scale(1.045); }
}

/* Content stays visible if scripting, observation or motion support is unavailable. */
.motion-ready [data-reveal] { opacity: 0; translate: 0 20px; transition: opacity .65s ease, translate .65s cubic-bezier(.22,.65,.3,1); }
.motion-ready [data-reveal].is-revealed { opacity: 1; translate: none; }
@media (max-width: 900px) {
  .ways .wrap { gap: 13px; }
  .service-card-frame .way { padding: 25px 20px; min-height: 260px; }
  .service-card-frame .way h2 { font-size: 27px; }
  .gallery-details { padding: 27px; }
  .gallery-details h3 { font-size: 25px; }
  .gallery-photo img { height: 375px; }
}
@media (max-width: 600px) {
  .ways .wrap { gap: 15px; padding-block: 20px; }
  .service-card-frame .way { min-height: 210px; padding: 25px; }
  .service-card-frame .way h2 { font-size: 30px; }
  .service-card-frame .way .go { padding-top: 22px; }
  .property-gallery .gallery-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .gallery-property { grid-template-columns: 1fr; }
  .gallery-photo img { height: 245px; }
  .gallery-details { padding: 26px; }
  .gallery-details h3 { font-size: 26px; }
  .gallery-details .price { font-size: 25px; }
  .gallery-search { flex-direction: column; align-items: flex-start; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card-frame .way,
  .service-card-frame .way:focus-visible,
  .service-card-frame .way .go,
  .gallery-property:hover .gallery-photo img { transform: none; }
  .service-card-frame .way, .gallery-photo img { transition: none; }
  .motion-ready [data-reveal] { opacity: 1; translate: none; transition: none; }
  .gallery-track { scroll-behavior: auto; }
}

/* Approved hero: keep the header call; the hero has one request action. */
.hero-portrait-frame { perspective: 1000px; min-width: 0; }
.hero-portrait-frame .hero-portrait {
  transform-style: preserve-3d;
  transform: rotateX(var(--card-x, 0deg)) rotateY(var(--card-y, 0deg));
  transition: transform .22s ease-out;
}
.hero-portrait-frame .hero-portrait > img { box-shadow: 0 15px 27px -19px #25392f55; }
.hero-portrait-frame .hero-portrait figcaption { transform: translateZ(26px); }
.js .hero-portrait-frame { animation: hero-depth-intro 1.6s cubic-bezier(.2,.65,.3,1) both; }
@keyframes hero-depth-intro {
  from { rotate: 0 1 0 -4deg; translate: 0 8px; }
  to { rotate: none; translate: none; }
}
@media (max-width: 600px) {
  body:not(.evaluation-page) .hero .actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-portrait-frame { animation: none; }
  .hero-portrait-frame .hero-portrait,
  .hero-portrait-frame .hero-portrait figcaption { transform: none; transition: none; }
}

html[lang="fr"] body:not(.evaluation-page) .hero h1 { font-size: clamp(18px, 6.1cqi, 48px); }
