@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Gilda Display";
  src: url("../fonts/gilda-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Palette */
  --ivory: #F5F0E7;
  --cream: #EDE5D8;
  --sand: #D9CCB9;
  --champagne: #C5B39A;
  --taupe: #A3937E;
  --stone: #817667;
  --mocha: #4A4036;
  --espresso: #302820;

  --bg: #E9E1D5;
  --frame: #D5C8B7;
  --section: #F2ECE2;
  --card: #E5DCCE;
  --card-2: #D8CBBB;
  --ink: #2E261F;
  --ink-soft: #5E5246;
  --accent: #7A6249;
  --line: rgba(58, 49, 41, 0.12);
  --outline: #B7A58E;

  /* Type */
  --serif: "Gilda Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Inter", system-ui, sans-serif;

  /* Shape */
  --r-frame: 24px;
  --r-hero: 18px;
  --r-card: 12px;
  --r-pill: 999px;

  /* Space */
  --gap: clamp(14px, 1.6vw, 22px);
  --pad: clamp(20px, 3vw, 44px);
  --section-y: clamp(28px, 3.6vw, 48px);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  display: none;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--ivory);
}
.skip:focus {
  top: 16px;
}

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

.frame {
  max-width: 1440px;
  margin: clamp(12px, 2.4vw, 32px) auto;
  padding: 10px;
  background: var(--frame);
  border-radius: var(--r-frame);
  box-shadow: 0 30px 60px -40px rgba(48, 40, 32, 0.35);
}

.label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.heading {
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 41px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.body {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.line-icon {
  font-size: 26px;
  color: var(--accent);
  stroke-width: 1.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 5px 5px 5px 20px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease), transform 160ms var(--ease-out);
}
.pill:active {
  transform: scale(0.97);
}
.pill__dot {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  transition: transform 300ms var(--ease-out);
}
.pill:hover .pill__dot {
  transform: translateX(3px);
}

.pill--light {
  background: var(--ivory);
  color: var(--ink);
}
.pill--light .pill__dot,
.pill--cream .pill__dot {
  background: var(--ink);
  color: var(--ivory);
}
.pill--light:hover {
  background: #fff;
}

.pill--cream {
  min-height: 50px;
  padding-left: 26px;
  background: rgba(245, 240, 231, 0.94);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 14px 30px -18px rgba(48, 40, 32, 0.6);
}
.pill--cream .pill__dot {
  width: 40px;
  height: 40px;
}
.pill--cream:hover {
  background: var(--ivory);
}

.pill--outline {
  border: 1px solid var(--outline);
  color: var(--mocha);
}
.pill--outline .pill__dot {
  color: var(--mocha);
}
.pill--outline:hover {
  background: var(--card);
  border-color: var(--taupe);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(245, 240, 231, 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 160ms var(--ease-out);
}
.icon-btn:hover {
  background: rgba(245, 240, 231, 0.16);
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn--soft {
  border-color: var(--outline);
  color: var(--mocha);
}
.icon-btn--soft:hover {
  background: var(--card);
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, var(--card-2), var(--champagne));
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) {
  .photo:hover img {
    transform: scale(1.03);
  }
}
/* Shown only while an image file is still missing. */
.photo.is-missing img {
  visibility: hidden;
}
.photo.is-missing::after {
  content: attr(data-file);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mocha);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(880px, calc(100svh - 40px));
  padding: 18px var(--pad) calc(var(--pad) + 30px);
  overflow: hidden;
  border-radius: var(--r-hero);
  color: var(--ivory);
  background: var(--espresso) url("../images/hero-poster.jpg") center 88% / cover;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(48, 40, 32, 0.5) 0%, rgba(48, 40, 32, 0.08) 34%, rgba(48, 40, 32, 0) 52%, rgba(48, 40, 32, 0.62) 100%),
    linear-gradient(90deg, rgba(74, 64, 54, 0.4) 0%, rgba(74, 64, 54, 0) 45%);
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 88%;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
}
.brand__text {
  display: grid;
  line-height: 1;
}
.brand__name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
}
.nav__links a {
  display: block;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 231, 0.86);
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav__links a:hover {
  color: var(--ivory);
  background: rgba(245, 240, 231, 0.12);
}
.nav__links a.is-active {
  background: var(--ivory);
  color: var(--ink);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__icons {
  display: flex;
  gap: 8px;
}
.nav__toggle {
  display: none;
}

.hero__title {
  position: relative;
  z-index: 1;
  margin-top: clamp(18px, 3vw, 40px);
  text-align: center;
  pointer-events: none;
}
.hero__word {
  margin: 0 -0.04em;
  font-family: var(--sans);
  font-size: clamp(76px, 16.5vw, 236px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: rgba(245, 240, 231, 0.78);
  background: linear-gradient(180deg, rgba(245, 240, 231, 0.92) 0%, rgba(233, 225, 213, 0.5) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__tag {
  margin-top: clamp(10px, 1.4vw, 18px);
  padding-left: 0.6em;
  font-size: clamp(11px, 1.3vw, 17px);
  font-weight: 300;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: rgba(245, 240, 231, 0.9);
}

.hero__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin-top: auto;
  padding-top: 40px;
}

.hero__lead {
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.12;
}
.hero__text {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(245, 240, 231, 0.84);
}
.hero__since {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(24px, 4vw, 52px);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero__since span {
  width: 44px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero__cta {
  margin-bottom: 4px;
}

.hero__stats {
  display: grid;
  justify-self: end;
  gap: 10px;
  width: min(100%, 200px);
}
.glass {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(245, 240, 231, 0.18);
  border-radius: var(--r-card);
  background: rgba(74, 64, 54, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}
.glass strong {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.glass .glass__place {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.glass span {
  max-width: 16ch;
  font-size: 10.5px;
  line-height: 1.4;
  color: rgba(245, 240, 231, 0.78);
}

.hero__pause {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: 28px;
  height: 28px;
  font-size: 11px;
  translate: -50% 0;
  opacity: 0.55;
}
.hero__pause:hover,
.hero__pause:focus-visible {
  opacity: 1;
}

/* Sheet: the light panel under the hero ------------------------------------ */

.sheet {
  margin-top: 10px;
  padding: 0 var(--pad);
  border-radius: var(--r-hero);
  background: var(--section);
}
.sheet > section {
  padding: var(--section-y) 0;
}
.sheet > section + section {
  border-top: 1px solid var(--line);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.about__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 6px;
}
.about__copy .label {
  margin-bottom: -6px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 10px 0 6px;
}
.pillars h3 {
  margin: 12px 0 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.15;
}
.pillars p {
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}
.about__media {
  min-height: 420px;
}
.stone-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  width: 150px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-card);
  background: rgba(229, 220, 206, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.stone-card span {
  font-size: 12px;
  color: var(--ink-soft);
}
.stone-card strong {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}
.stone-card small {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* Services */
.services .heading,
.testimonials .heading,
.contact .heading {
  font-size: clamp(25px, 2.2vw, 34px);
}

.services {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) 3.2fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 18px 14px 16px;
  border: 1px solid rgba(165, 140, 110, 0.18);
  border-radius: var(--r-card);
  background: var(--card);
  transition: transform 300ms var(--ease-out), background-color 300ms var(--ease), translate 700ms var(--ease-out), opacity 700ms var(--ease-out);
}
.service h3 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.12;
}
.service p {
  flex: 1;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
}
.round-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px;
  transition: transform 300ms var(--ease-out);
}
.round-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
@media (hover: hover) {
  .service:hover {
    transform: translateY(-3px);
    background: var(--card-2);
  }
  .service:hover .round-arrow {
    transform: translateX(3px);
  }
}

/* Projects */
.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.row-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-head__actions .icon-btn {
  width: 42px;
  height: 42px;
}

/* Property strip: the list is drawn twice (see main.js) and slides by one copy, so it loops without a jump. */
.rail {
  margin: 0 calc(var(--pad) * -1);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rail__track {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 0 var(--pad);
}
.rail.is-looping .rail__track {
  animation: rail 56s linear infinite;
}
.rail.is-looping:hover .rail__track,
.rail.is-held .rail__track,
.rail.is-paused .rail__track {
  animation-play-state: paused;
}
@keyframes rail {
  to {
    transform: translateX(calc(-50% - 5px));
  }
}
.rail:not(.is-looping) {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail:not(.is-looping) li {
  scroll-snap-align: center;
}
.rail__track > li {
  flex: none;
  width: clamp(200px, 22vw, 310px);
}
@media (max-width: 767px) {
  .rail__track > li {
    width: 62vw;
  }
}
.property {
  display: grid;
  gap: 12px;
}
.property__photo {
  display: block;
  aspect-ratio: 1;
}
@media (hover: hover) {
  .property:hover .property__photo img {
    transform: scale(1.03);
  }
}
.property__info {
  display: grid;
  gap: 2px;
  padding: 0 2px;
}
.property__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 10px;
}
.property__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  transition: color 300ms var(--ease);
}
.property:hover .property__name {
  color: var(--accent);
}
.property__price {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.property__place {
  font-size: 12px;
  color: var(--ink-soft);
}
.property__meta {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* Featured */
.featured {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
.featured__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.featured__copy .label {
  margin-bottom: -6px;
}
.facts {
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.facts div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
}
.facts div::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.facts dt::after {
  content: ":";
}
.facts dd {
  color: var(--ink);
}
.featured__media {
  min-height: 380px;
  aspect-ratio: 16 / 9;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 2.6fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--r-card);
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.quote {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 32px);
  padding: 22px clamp(18px, 2.4vw, 32px);
  border: 1px solid rgba(165, 140, 110, 0.2);
  border-radius: var(--r-card);
  background: var(--card);
  scroll-snap-align: start;
}
.quote__mark {
  font-family: var(--serif);
  font-size: 92px;
  line-height: 0.6;
  color: var(--accent);
  translate: 0 18px;
}
.quote blockquote {
  max-width: 54ch;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
}
.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--ink-soft);
}
.rating strong {
  color: var(--ink);
  font-weight: 600;
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--accent);
}
.stars svg {
  fill: currentColor;
  stroke: none;
  font-size: 13px;
}
.quote__who {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: right;
}
.quote__who strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.quote__who small {
  font-size: 11px;
  color: var(--ink-soft);
}
.quote__who img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--card-2);
}
.quote__who img.is-missing {
  visibility: hidden;
  width: 0;
}

/* Contact ------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(320px, 1.3fr) auto 1.3fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-top: 10px;
  padding: clamp(22px, 3vw, 36px) var(--pad);
  border-radius: var(--r-hero);
  background: var(--cream);
}
.contact .body {
  margin-top: 12px;
}
.contact__list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 22px;
  justify-content: start;
}
.contact__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
}
.contact__list .line-icon {
  flex: none;
  font-size: 20px;
}
.contact__list a,
.contact__list address {
  display: grid;
  font-style: normal;
  transition: color 300ms var(--ease);
}
.contact__list a:hover {
  color: var(--accent);
}
.contact__list small {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--ink-soft);
}
/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 10px;
  padding: 20px var(--pad);
  border-top: 1px solid rgba(58, 49, 41, 0.1);
  border-radius: var(--r-hero);
  background: var(--sand);
  color: var(--ink-soft);
  font-size: 11px;
}
.brand--dark {
  color: var(--ink);
}
.brand--dark .brand__name {
  font-size: 16px;
}
.brand--dark .brand__mark {
  width: 28px;
  height: 28px;
}
.footer__copy span {
  display: block;
  font-size: 10px;
  opacity: 0.8;
}
.footer__links {
  display: flex;
  gap: 22px;
}
.footer__links a:hover {
  color: var(--ink);
}

/* Motion ------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  translate: 0 0;
}
.service.reveal {
  transition: transform 300ms var(--ease-out), background-color 300ms var(--ease), opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
}

.js .hero__word,
.js .hero__tag,
.js .hero__intro,
.js .hero__cta,
.js .hero__stats {
  animation: rise 1000ms var(--ease-out) both;
}
.js .hero__word {
  animation-name: rise-word;
  animation-duration: 1400ms;
}
.js .hero__tag { animation-delay: 250ms; }
.js .hero__intro { animation-delay: 450ms; }
.js .hero__cta { animation-delay: 550ms; }
.js .hero__stats { animation-delay: 650ms; }

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 16px;
  }
}
@keyframes rise-word {
  from {
    opacity: 0;
    translate: 0 28px;
    filter: blur(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.is-in {
    opacity: 1;
    translate: none;
    transition: none;
  }
  .js .hero__word,
  .js .hero__tag,
  .js .hero__intro,
  .js .hero__cta,
  .js .hero__stats {
    animation: none;
  }
  .photo img,
  .service,
  .pill__dot,
  .round-arrow {
    transition: none;
  }
}

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

@media (max-width: 1199px) {
  .nav__links a {
    padding: 7px 10px;
  }
  .nav__icons {
    display: none;
  }
  .footer .nav__icons {
    display: flex;
  }

  .about {
    grid-template-columns: 1fr 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pillars li {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 12px;
  }
  .pillars h3 {
    margin-top: 0;
  }
  .pillars p {
    grid-column: 2;
  }

  .services,
  .testimonials {
    grid-template-columns: 1fr;
  }
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .service {
    min-height: 190px;
  }

  .featured {
    grid-template-columns: 1fr;
  }
  .featured__media {
    order: -1;
    min-height: 0;
  }

  .contact {
    grid-template-columns: 1fr 1fr;
  }
  .contact__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 1023px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(74, 64, 54, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    translate: 0 -6px;
    transition: opacity 220ms var(--ease-out), translate 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition: opacity 220ms var(--ease-out), translate 220ms var(--ease-out);
  }
  .nav__links a {
    padding: 12px 16px;
    font-size: 14px;
  }
  .nav__toggle {
    display: grid;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .hero__bottom {
    grid-template-columns: 1fr auto;
  }
  .hero__cta {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
  .hero__stats {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

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

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .frame {
    margin: 8px;
    padding: 6px;
    border-radius: 20px;
  }
  .hero {
    min-height: calc(100svh - 28px);
    padding: 14px 16px 40px;
    border-radius: 16px;
  }
  .hero__video {
    object-position: 72% 88%;
  }
  .nav .pill--light {
    display: none;
  }
  .brand__name {
    font-size: 17px;
  }
  .hero__title {
    margin-top: 28px;
  }
  .hero__word {
    font-size: clamp(56px, 19vw, 120px);
  }
  .hero__tag {
    font-size: 10px;
    letter-spacing: 0.42em;
  }

  .hero__bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .hero__intro,
  .hero__cta,
  .hero__stats {
    grid-column: 1;
    grid-row: auto;
  }
  .hero__since {
    margin-top: 18px;
  }
  .hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    width: 100%;
    gap: 6px;
  }
  .glass {
    padding: 10px;
  }
  .glass strong {
    font-size: 20px;
  }
  .glass .glass__place {
    font-size: 11px;
  }
  .glass span {
    font-size: 9.5px;
  }
  .hero__pause {
    left: auto;
    right: 12px;
    top: 72px;
    bottom: auto;
    translate: none;
  }

  .sheet {
    padding: 0 16px;
    border-radius: 16px;
  }

  .about {
    grid-template-columns: 1fr;
  }
  .about__media {
    min-height: 0;
    aspect-ratio: 4 / 3.4;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured__media {
    aspect-ratio: 4 / 3;
  }

  .carousel {
    grid-template-columns: 1fr 1fr;
  }
  .carousel__track {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .carousel__btn:first-child {
    justify-self: end;
  }
  .quote {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
  .quote__mark {
    font-size: 64px;
    translate: 0 10px;
  }
  .quote__who {
    justify-content: flex-start;
    flex-direction: row-reverse;
    text-align: left;
  }
  .quote__who img {
    width: 52px;
    height: 52px;
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px;
    border-radius: 16px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    border-radius: 16px;
  }
}

@media (max-width: 339px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero__stats li:last-child {
    grid-column: 1 / -1;
  }
}

/* Floating WhatsApp button ------------------------------------------------- */
/* Shown once the hero is out of view and hidden again over the footer (see main.js). */

.whatsapp {
  position: fixed;
  right: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 32px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 20px 6px 6px;
  border: 1px solid rgba(245, 240, 231, 0.14);
  border-radius: var(--r-pill);
  background: var(--espresso);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 18px 40px -18px rgba(48, 40, 32, 0.7);
  transition: opacity 240ms var(--ease-out), translate 240ms var(--ease-out), visibility 0s linear 0s, background-color 300ms var(--ease), transform 160ms var(--ease-out);
}
.whatsapp__icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  fill: currentColor;
  stroke: none;
}
.whatsapp:hover {
  background: var(--mocha);
}
.whatsapp:active {
  transform: scale(0.97);
}
.js .whatsapp:not(.is-visible) {
  opacity: 0;
  translate: 0 16px;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), translate 200ms var(--ease-out), visibility 0s linear 200ms;
}

@media (max-width: 767px) {
  .whatsapp {
    padding: 6px;
  }
  .whatsapp__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp,
  .js .whatsapp:not(.is-visible) {
    translate: none;
  }
}

/* Property search ------------------------------------------------------------ */
/* The bar rests on the lower edge of the hero, covering only its border. */

.search {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr auto;
  align-items: center;
  gap: 2px;
  width: calc(100% - var(--pad) * 2);
  margin: -20px auto 0;
  padding: 8px;
  border-radius: 18px;
  background: rgba(245, 240, 231, 0.97);
  box-shadow: 0 24px 50px -30px rgba(48, 40, 32, 0.55);
}
.search__field {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.search__field + .search__field {
  border-left: 1px solid var(--line);
}
.search__field:hover,
.search__field:focus-within {
  background: var(--card);
}
.search__field span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.search__field input,
.search__field select {
  width: 100%;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 400 14px var(--sans);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.search__field input {
  cursor: text;
}
.search__field input::placeholder {
  color: var(--ink-soft);
}
.search__field input::-webkit-search-cancel-button {
  display: none;
}
.search__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--ivory);
  font: 500 13px var(--sans);
  cursor: pointer;
  transition: background-color 300ms var(--ease), transform 160ms var(--ease-out);
}
.search__btn:hover {
  background: var(--mocha);
}
.search__btn:active {
  transform: scale(0.97);
}
.search__btn svg {
  font-size: 16px;
}

.search-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px 0 16px;
  font-size: 13px;
  color: var(--ink-soft);
}
.search-status[hidden],
.search-empty[hidden] {
  display: none;
}
.search-status__clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.search-empty {
  max-width: 60ch;
  padding: 22px 24px;
  border-radius: var(--r-card);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 14px;
}
.search-empty a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Results replace the moving strip with a still grid. */
.rail.is-results {
  margin: 0;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
.rail.is-results .rail__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: auto;
  padding: 0;
  animation: none;
}
.rail.is-results .rail__track > li {
  width: auto;
}
.rail.is-results .rail__track > li[aria-hidden="true"] {
  display: none;
}
.rail__track > li[hidden] {
  display: none;
}
.is-searching #rail-pause {
  display: none;
}

@media (max-width: 1023px) {
  .search {
    grid-template-columns: 1fr 1fr;
  }
  .search__field + .search__field {
    border-left: 0;
  }
  .search__field:nth-child(1),
  .search__field:nth-child(2),
  .search__btn {
    grid-column: 1 / -1;
  }
  .search__btn {
    margin-top: 4px;
  }
  .rail.is-results .rail__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .search {
    width: calc(100% - 24px);
    padding: 6px;
    border-radius: 16px;
  }
  .search__field {
    padding: 8px 12px;
  }
}

/* Office map ----------------------------------------------------------------- */

.contact__map {
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 170px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--card);
}
/* Sizes per screen live here, after the base rule, so they are not overridden. */
@media (max-width: 1199px) {
  .contact__map {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 5;
  }
}
@media (max-width: 767px) {
  .contact__map {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
.map {
  position: absolute;
  inset: 0;
}
/* MapLibre positions .map-pin with a transform, so the rotation lives on the inner drop. */
.map-pin {
  width: 34px;
  height: 40px;
}
.map-pin__drop {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ivory);
  border-radius: 50% 50% 50% 4px;
  background: var(--espresso);
  color: var(--ivory);
  rotate: -45deg;
  box-shadow: 0 10px 20px -8px rgba(48, 40, 32, 0.7);
}
.map-pin svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  rotate: 45deg;
}

/* MapLibre controls in the site style. */
.map .maplibregl-ctrl-group {
  border-radius: 10px;
  background: var(--ivory);
  box-shadow: 0 8px 20px -12px rgba(48, 40, 32, 0.6);
}
.map .maplibregl-ctrl-attrib {
  background: rgba(245, 240, 231, 0.85);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10px;
}
.map .maplibregl-cooperative-gesture-screen {
  background: rgba(46, 38, 31, 0.55);
  font-family: var(--sans);
  font-size: 15px;
}

