:root {
  --primary: #304a6e;
  --primary-dark: #1c2c42;
  --primary-deep: #131d2c;
  --primary-muted: #6e8099;
  --secondary: #efe9dd;
  --secondary-soft: #f7f4ee;
  --secondary-shade: #d7d1c6;
  --ivory: var(--secondary);
  --ivory-soft: var(--secondary-soft);
  --ink: var(--primary-dark);
  --muted: var(--primary-muted);
  --line: rgba(48, 74, 110, 0.2);
  --accent: var(--primary);
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", sans-serif;
  /* shared with the inner pages so the mobile menu matches them exactly */
  --blue-deep: #101d2d;
  --neutral-soft: #f8f5ef;
  --line-light: rgba(255, 253, 250, 0.22);
  --page-pad: clamp(24px, 5vw, 92px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  background: var(--secondary-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.hero {
  --hero-layer-shift: clamp(80px, 6.5vw, 130px);
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--secondary);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.2;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.16'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: center;
  width: min(100% - 7vw, 1680px);
  min-height: 58px;
  margin: 0 auto;
  column-gap: clamp(28px, 3vw, 58px);
}

.brand {
  position: absolute;
  top: 5px;
  left: 0;
  display: inline-flex;
  width: 170px;
  height: 48px;
  align-items: center;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(18px, 1.6vw, 32px);
  color: #445c7c;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a.active {
  color: var(--ink);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.header-cta svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-rule {
  position: absolute;
  z-index: 12;
  top: calc(57px - var(--hero-layer-shift));
  right: 3.5vw;
  left: clamp(215px, 16vw, 280px);
  height: 1px;
  background: var(--line);
}

.hero-white-layer {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  top: calc(var(--hero-layer-shift) * -1);
  height: calc(clamp(130px, 15vh, 230px) + min(14.97vw, 264.75px) + 56px + var(--hero-layer-shift));
  background: linear-gradient(180deg, #9ed8ef 0%, #bfe3f1 54%, #dceaf7 100%);
  opacity: 1;
  pointer-events: none;
}

.hero-intro {
  position: absolute;
  z-index: 8;
  top: clamp(130px, 15vh, 230px);
  left: 3.5vw;
  width: min(330px, 24vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 21px;
  color: #596e8b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.intro-copy {
  margin: 0;
  color: #2b4263;
  font-family: var(--display);
  font-size: clamp(17px, 1.35vw, 23px);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.25;
}

.hero-logo {
  position: absolute;
  z-index: 2;
  top: clamp(130px, 15vh, 230px);
  right: 3.5vw;
  left: auto;
  width: min(52vw, 920px);
  margin: 0;
}

.hero-logo[data-reveal="hero-logo"] {
  transform: translateY(calc(14px + var(--hero-logo-parallax-y, 0px)));
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.82;
}

.hero-logo-stroke-layer {
  position: absolute;
  z-index: 4;
  top: clamp(130px, 15vh, 230px);
  right: 3.5vw;
  width: min(52vw, 920px);
  opacity: 0;
  filter: none;
  transform: translateY(calc(14px + var(--hero-logo-parallax-y, 0px)));
  transform-origin: center;
  transition: opacity 900ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-logo-stroke-layer img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transform: translateY(20px) scale(1.012);
  transition: opacity 1100ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 1400ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-art::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(19, 29, 44, 0.2));
}

.hero-art img {
  display: block;
  position: absolute;
  top: auto;
  right: -10%;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 200%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.82) contrast(1.03);
}

.hero-foreground {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
  transform: translateY(calc(20px + var(--hero-parallax-y, 0px))) scale(1.012);
  transition: opacity 1100ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 1400ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-foreground img {
  display: block;
  position: absolute;
  top: auto;
  right: -10%;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 200%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
}

.hero-bottom {
  position: absolute;
  z-index: 10;
  right: 3.5vw;
  bottom: clamp(28px, 4.8vh, 54px);
  left: 3.5vw;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  color: #fff;
}

.hero-highlights {
  display: flex;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 42px);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.52);
}

.hero-highlights p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.hero-highlights strong {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-highlights span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-cue {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.scroll-cue svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: float 1.8s ease-in-out infinite;
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.residence-showcase {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(64px, 7vw, 104px) clamp(32px, 5vw, 80px) clamp(72px, 8vw, 112px);
  color: #2e496f;
  background: #dceaf7;
}

.residence-showcase::before {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.residence-showcase::before {
  display: none;
}

.residence-shell {
  display: grid;
  grid-template-columns: 500px minmax(620px, 1fr);
  grid-template-rows: 110px 1fr 94px;
  column-gap: 18px;
  width: min(100%, 1240px);
  height: 672px;
  padding: 0 20px;
  margin: 0 auto;
}

.residence-feature-image {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: stretch;
  width: 500px;
  height: 100%;
  justify-self: start;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(46, 73, 111, 0.16);
  border-radius: 30px 30px 30px 112px;
  box-shadow: 0 22px 48px rgba(46, 73, 111, 0.14);
}

.residence-feature-image::after {
  display: none;
}

.residence-feature-image img,
.residence-oval img,
.residence-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.residence-feature-image img {
  object-position: 52% center;
  filter: none;
  transition: transform 1.4s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.residence-showcase:hover .residence-feature-image img {
  transform: scale(1.025);
}

.residence-heading {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.residence-kicker {
  display: none;
}

.residence-heading h2 {
  max-width: 720px;
  margin: 0 auto;
  color: var(--primary);
  font-family: var(--display);
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.residence-gallery {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 112px 270px 112px;
  justify-content: center;
  align-items: center;
  gap: 75px;
  outline: none;
}

.residence-carousel {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.residence-oval {
  position: relative;
  width: 270px;
  aspect-ratio: 0.655;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 74, 110, 0.24);
  border-radius: 50% / 39%;
  background: #f5f5f5;
  box-shadow: none;
}

.residence-oval::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  box-shadow: none;
  pointer-events: none;
}

.residence-slide-image {
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
  opacity: 1;
  transform: scale(1);
  transition: opacity 260ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.residence-slide-image.is-changing {
  opacity: 0;
  transform: scale(1.035);
}

.residence-control {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(48, 74, 110, 0.5);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(239, 233, 221, 0.72);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.residence-cta svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.residence-control:hover,
.residence-control:focus-visible {
  border-color: var(--primary);
  color: var(--secondary-soft);
  background: var(--primary);
  outline: none;
  transform: translateY(-2px);
}

.residence-thumbnails {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.residence-thumbnail {
  width: 44px;
  height: 44px;
  padding: 2px;
  overflow: hidden;
  border: 1px solid rgba(48, 74, 110, 0.34);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.residence-thumbnail img {
  border-radius: 50%;
}

.residence-thumbnail:hover,
.residence-thumbnail:focus-visible,
.residence-thumbnail.is-active {
  border-color: var(--primary);
  opacity: 1;
  outline: none;
  transform: translateY(-2px);
}

.residence-footer {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(320px, 390px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0;
}

.residence-copy > p:first-child {
  max-width: 390px;
  margin: 0;
  color: var(--primary-dark);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.3;
}

.residence-spec {
  margin: 9px 0 0;
  color: rgba(48, 74, 110, 0.66);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.residence-cta {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 280ms ease;
}

.residence-cta span {
  position: relative;
  z-index: 2;
  order: 1;
  min-width: 144px;
  padding: 15px 24px;
  border-radius: 999px;
  text-align: center;
  background: var(--primary-dark);
  white-space: nowrap;
}

.residence-cta::after {
  order: 2;
  width: 24px;
  height: 14px;
  margin-right: -13px;
  margin-left: -13px;
  content: "";
  background: var(--primary-dark);
}

.residence-cta svg {
  position: relative;
  z-index: 2;
  order: 3;
  width: 44px;
  height: 44px;
  padding: 13px;
  flex: 0 0 44px;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  background: var(--primary-dark);
  transition: transform 300ms ease, background 300ms ease;
}

.residence-cta:hover,
.residence-cta:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.residence-cta:hover svg,
.residence-cta:focus-visible svg {
  background: var(--primary);
  transform: rotate(45deg);
}

.residence-feature-image,
.residence-heading,
.residence-gallery,
.residence-footer {
  opacity: 0;
  transition:
    opacity 900ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 1000ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.residence-feature-image { transform: translateX(-52px) scale(0.98); }
.residence-heading { transform: translateY(26px); }
.residence-gallery { transform: scale(0.9); }
.residence-footer { transform: translateY(30px); }

.residence-showcase.is-visible .residence-feature-image,
.residence-showcase.is-visible .residence-heading,
.residence-showcase.is-visible .residence-gallery,
.residence-showcase.is-visible .residence-footer {
  opacity: 1;
  transform: none;
}

.residence-showcase.is-visible .residence-feature-image {
  transition-delay: 60ms;
}

.residence-showcase.is-visible .residence-heading {
  transition-delay: 220ms;
}

.residence-showcase.is-visible .residence-gallery {
  transition-delay: 340ms;
}

.residence-showcase.is-visible .residence-footer {
  transition-delay: 470ms;
}

.services-showcase {
  --service-visual-column: 2;
  --service-detail-column: 3;
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: clamp(88px, 10vw, 150px) clamp(24px, 4vw, 72px);
  overflow: hidden;
  color: var(--primary-dark);
  background: #ffffff;
}

.services-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(100%, 1480px);
  height: clamp(580px, calc(100svh - 48px), 790px);
  margin: 0 auto;
  overflow: hidden;
  border-right: 1px solid rgba(48, 74, 110, 0.1);
  border-left: 1px solid rgba(48, 74, 110, 0.1);
  background:
    linear-gradient(90deg, transparent calc(20% - 1px), rgba(48, 74, 110, 0.08) 20%, transparent calc(20% + 1px)),
    linear-gradient(90deg, transparent calc(40% - 1px), rgba(48, 74, 110, 0.08) 40%, transparent calc(40% + 1px)),
    linear-gradient(90deg, transparent calc(60% - 1px), rgba(48, 74, 110, 0.08) 60%, transparent calc(60% + 1px)),
    linear-gradient(90deg, transparent calc(80% - 1px), rgba(48, 74, 110, 0.08) 80%, transparent calc(80% + 1px));
}

.services-brand {
  position: relative;
  z-index: 6;
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: clamp(112px, 9vw, 146px);
  height: 64px;
  margin: 4px 0 0 clamp(18px, 2vw, 32px);
  overflow: hidden;
}

.services-brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.services-visual {
  position: relative;
  z-index: 2;
  grid-column: var(--service-visual-column);
  grid-row: 1 / 3;
  width: 100%;
  height: 100%;
  align-self: start;
  overflow: hidden;
  background: var(--primary-dark);
}

.service-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  clip-path: inset(0);
  transition: opacity 1050ms cubic-bezier(0.22, 0.72, 0.2, 1);
  will-change: opacity;
}

.service-image.is-previous {
  z-index: 1;
  opacity: 1;
}

.service-image.is-active {
  z-index: 2;
  opacity: 1;
}


.services-visual::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 38%;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(19, 29, 44, 0.62));
}

.services-image-index {
  position: absolute;
  z-index: 4;
  top: 20px;
  right: 18px;
  display: flex;
  gap: 4px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.services-image-index span:first-child {
  color: #ffffff;
}

.services-intro {
  position: relative;
  z-index: 5;
  min-width: 0;
  grid-column: var(--service-detail-column) / span 2;
  grid-row: 1;
  align-self: start;
  padding: 0 clamp(30px, 4vw, 66px);
}

.services-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 17px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.services-kicker::before {
  width: 24px;
  height: 1px;
  content: "";
  background: currentColor;
}

.services-intro h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(43px, 3.7vw, 60px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.services-detail {
  max-width: 580px;
  margin-top: clamp(24px, 3vw, 48px);
  transition:
    opacity 420ms cubic-bezier(0.22, 0.72, 0.2, 1),
    transform 420ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.services-detail-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 13px;
  color: var(--primary);
  font-family: var(--display);
  font-size: clamp(30px, 2.35vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.services-detail-title::before {
  width: 28px;
  height: 1px;
  flex: 0 0 28px;
  content: "";
  background: currentColor;
}

.services-detail-copy {
  margin: 0;
  color: rgba(28, 44, 66, 0.8);
  font-family: var(--display);
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.28;
}

.services-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 25px;
  color: var(--secondary-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 280ms ease;
}

.services-cta span {
  position: relative;
  z-index: 2;
  order: 1;
  min-width: 144px;
  padding: 15px 24px;
  border-radius: 999px;
  text-align: center;
  background: var(--primary-dark);
}

.services-cta::after {
  order: 2;
  width: 24px;
  height: 14px;
  margin-right: -13px;
  margin-left: -13px;
  content: "";
  background: var(--primary-dark);
}

.services-cta svg {
  position: relative;
  z-index: 2;
  order: 3;
  width: 44px;
  height: 44px;
  padding: 13px;
  flex: 0 0 44px;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  background: var(--primary-dark);
  transition: transform 300ms ease, background 300ms ease;
}

.services-cta:hover,
.services-cta:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.services-cta:hover svg,
.services-cta:focus-visible svg {
  background: var(--primary);
  transform: rotate(45deg);
}

.services-list {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  pointer-events: none;
}

.service-link {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 154px;
  padding: 46px clamp(16px, 1.6vw, 28px) 18px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: auto;
  transition: color 350ms ease, transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.service-link.is-active {
  color: var(--secondary-soft);
  text-shadow: 0 2px 20px rgba(19, 29, 44, 0.55);
}

.service-link::after {
  position: absolute;
  right: clamp(16px, 1.6vw, 28px);
  bottom: 12px;
  left: clamp(16px, 1.6vw, 28px);
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 320ms ease, transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.service-link-number {
  position: absolute;
  top: 28px;
  left: clamp(16px, 1.6vw, 28px);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0.56;
}

.service-link-title {
  display: block;
  font-family: var(--display);
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.97;
  transition: transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.service-link:hover .service-link-title,
.service-link:focus-visible .service-link-title,
.service-link.is-active .service-link-title {
  transform: translateY(-7px);
}

.service-link:hover::after,
.service-link:focus-visible::after,
.service-link.is-active::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.service-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -4px;
}

/* accordion panels are built by JS but only shown on mobile */
.service-panel {
  display: none;
}

/* ---------- Services: scroll-in reveal ---------- */
/* soft fade-up for the surrounding elements */
.services-brand,
.services-kicker,
.services-intro h2,
.services-list {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.services-showcase.is-visible .services-brand,
.services-showcase.is-visible .services-kicker,
.services-showcase.is-visible .services-intro h2,
.services-showcase.is-visible .services-list {
  opacity: 1;
  transform: none;
}

.services-showcase.is-visible .services-kicker { transition-delay: 120ms; }
.services-showcase.is-visible .services-intro h2 { transition-delay: 220ms; }
.services-showcase.is-visible .services-list { transition-delay: 380ms; }

/* card 02 image, detail and button: top-to-bottom "peel" wipe on first view */
.services-showcase:not(.is-visible) .service-image.is-active,
.services-showcase:not(.is-visible) .services-detail,
.services-showcase:not(.is-visible) .services-cta {
  clip-path: inset(0 0 100% 0);
}

.services-showcase.is-visible:not(.has-service-interaction) .service-image.is-active {
  animation: service-starter-reveal 1500ms cubic-bezier(0.22, 0.72, 0.2, 1) both;
}

.services-showcase.is-visible:not(.has-service-interaction) .services-detail {
  animation: service-starter-reveal 1050ms cubic-bezier(0.22, 0.72, 0.2, 1) 340ms both;
}

.services-showcase.is-visible:not(.has-service-interaction) .services-cta {
  animation: service-starter-reveal 950ms cubic-bezier(0.22, 0.72, 0.2, 1) 540ms both;
}

.services-showcase.has-service-interaction .services-intro {
  transition:
    opacity 420ms cubic-bezier(0.22, 0.72, 0.2, 1),
    transform 420ms cubic-bezier(0.22, 0.72, 0.2, 1);
  transition-delay: 0ms;
}

.services-showcase.is-visible .services-intro.is-changing,
.services-showcase:target .services-intro.is-changing {
  opacity: 0;
  transform: translateY(12px);
  transition-delay: 0ms;
}

.services-showcase.is-visible .services-list {
  transition-delay: 260ms;
}

.services-placeholder-page {
  min-height: 100vh;
  background: var(--secondary-soft);
}

/* equal, generous spacing between sections, from About onward */
.about-showcase,
.residence-showcase,
.services-showcase,
.gallery-showcase {
  margin-top: 0;
}

.about-showcase {
  --about-pad-x: clamp(24px, 5vw, 80px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(96px, 10vw, 160px) var(--about-pad-x) clamp(76px, 8vw, 120px);
  color: var(--primary-dark);
  background: var(--secondary-soft);
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.55fr) minmax(0, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  width: min(100%, 1240px);
  height: clamp(560px, 62vw, 720px);
  margin: 0 auto;
  align-items: stretch;
}

.about-img {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: clamp(16px, 1.6vw, 26px);
  background: #e7e2d8;
}

.about-img img {
  --about-image-parallax-y: 0px;
  --about-image-scale: 1.045;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--about-image-parallax-y), 0) scale(var(--about-image-scale));
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.residence-pause {
  position: absolute;
  top: 0;
  right: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(48, 74, 110, 0.34);
  border-radius: 999px;
  color: #2e496f;
  background: transparent;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms cubic-bezier(0.2, 0.75, 0.25, 1), background 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.residence-pause:hover,
.residence-pause:focus-visible,
.residence-pause[aria-pressed="true"] {
  color: var(--secondary-soft);
  background: var(--primary);
}

.about-showcase.is-parallax-scrolling .about-img img {
  transition: none;
}

.about-img-1 { grid-column: 1; grid-row: 1; }
.about-img-2 { grid-column: 1; grid-row: 2; }
.about-img-3 { grid-column: 3; grid-row: 1; }
.about-img-4 { grid-column: 3; grid-row: 2; }

/* hidden start states — collage assembles from the outer edges on scroll-in */
.about-img-1 { transform: translate(-48px, -14px); }
.about-img-2 { transform: translate(-48px, 12px); }
.about-img-3 { transform: translate(48px, -12px); }
.about-img-4 { transform: translate(48px, 14px); }

/* images 1 and 4 break out to the screen edges; outer corners merge flat */
.about-img-1 {
  margin-left: calc(-1 * max(var(--about-pad-x), (100vw - 1240px) / 2));
  border-radius: 0 clamp(16px, 1.6vw, 26px) clamp(16px, 1.6vw, 26px) 0;
}

.about-img-4 {
  margin-right: calc(-1 * max(var(--about-pad-x), (100vw - 1240px) / 2));
  border-radius: clamp(16px, 1.6vw, 26px) 0 0 clamp(16px, 1.6vw, 26px);
}

.about-content {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 2vw, 34px);
  text-align: center;
}

.about-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(20px, 3vw, 30px);
  color: var(--primary);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-kicker span {
  width: 26px;
  height: 1px;
  background: var(--primary);
}

.about-diamond {
  width: 12px;
  height: 12px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  background: var(--primary);
  opacity: 0;
  transform: rotate(45deg) scale(0.2);
  transition:
    opacity 600ms ease 220ms,
    transform 720ms cubic-bezier(0.34, 1.56, 0.64, 1) 220ms;
}

.about-title {
  margin: 0;
  color: var(--primary-dark);
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 66px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.about-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2vw, 34px);
  width: 100%;
  max-width: min(560px, 100%);
  margin: clamp(24px, 3vw, 38px) 0 0;
}

.about-body p {
  margin: 0;
  color: rgba(28, 44, 66, 0.72);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.62;
  text-align: left;
}

.about-cta {
  margin-top: clamp(28px, 3.4vw, 42px);
  opacity: 0;
  transition: opacity 800ms ease 540ms, transform 300ms ease, background 300ms ease;
}

/* ---------- About: scroll-in reveal ---------- */
.about-img {
  opacity: 0;
  transition:
    opacity 900ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 1050ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.about-showcase.is-visible .about-img {
  opacity: 1;
}

.about-showcase.is-visible .about-img-1 { transform: translateY(-14px); transition-delay: 90ms; }
.about-showcase.is-visible .about-img-3 { transform: translateY(0); transition-delay: 160ms; }
.about-showcase.is-visible .about-img-2 { transform: translateY(0); transition-delay: 230ms; }
.about-showcase.is-visible .about-img-4 { transform: translateY(14px); transition-delay: 300ms; }

.about-kicker,
.about-title,
.about-body {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 850ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 950ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.about-showcase.is-visible .about-kicker { opacity: 1; transform: none; transition-delay: 150ms; }
.about-showcase.is-visible .about-diamond { opacity: 1; transform: rotate(45deg) scale(1); }
.about-showcase.is-visible .about-title { opacity: 1; transform: none; transition-delay: 320ms; }
.about-showcase.is-visible .about-body { opacity: 1; transform: none; transition-delay: 440ms; }
.about-showcase.is-visible .about-cta { opacity: 1; }

.gallery-showcase {
  position: relative;
  z-index: 3;
  min-height: 850px;
  padding: clamp(99px, 10vw, 200px) 0 42px;
  overflow: hidden;
  isolation: isolate;
  color: var(--secondary-soft);
  background:
    linear-gradient(180deg, transparent 74%, var(--primary-deep) 100%),
    radial-gradient(circle at 50% 18%, rgba(110, 128, 153, 0.3), transparent 34%),
    linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 72%, var(--primary-deep) 100%);
}

.gallery-showcase::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.23'/%3E%3C/svg%3E");
}

.gallery-heading {
  position: relative;
  z-index: 3;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  text-align: center;
}

.gallery-kicker {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 9px 17px;
  border: 1px solid rgba(247, 244, 238, 0.34);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(247, 244, 238, 0.08);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gallery-heading h2 {
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(46px, 5.2vw, 80px);
  font-weight: 400;
  letter-spacing: -0.058em;
  line-height: 0.97;
  text-wrap: balance;
}

.gallery-categories {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(247, 244, 238, 0.64);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.7;
  text-transform: uppercase;
}

.gallery-categories span {
  margin: 0 9px;
  color: rgba(247, 244, 238, 0.3);
}

.gallery-carousel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  width: min(100% - 36px, 1560px);
  margin: 20px auto 0;
  outline: none;
}

.gallery-carousel:focus-visible {
  outline: 1px solid rgba(239, 233, 221, 0.62);
  outline-offset: 5px;
}

.gallery-viewport {
  position: relative;
  height: clamp(330px, 29vw, 455px);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: clamp(150px, 13.5vw, 218px);
  height: clamp(270px, 24vw, 390px);
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(239, 233, 221, 0.22);
  border-radius: clamp(20px, 2vw, 32px);
  color: var(--secondary-soft);
  background: var(--primary-deep);
  box-shadow: 0 22px 48px rgba(9, 14, 22, 0.3);
  cursor: pointer;
  user-select: none;
  transform-origin: center;
  transition:
    transform 900ms cubic-bezier(0.2, 0.78, 0.2, 1),
    opacity 650ms ease,
    border-color 500ms ease,
    box-shadow 600ms ease,
    filter 650ms ease;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 1100ms cubic-bezier(0.2, 0.78, 0.2, 1), filter 650ms ease;
}

.gallery-card::after {
  position: absolute;
  inset: 48% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(19, 29, 44, 0.78));
  opacity: 0;
  transition: opacity 500ms ease;
}

.gallery-card span {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 17px;
  left: 17px;
  color: var(--secondary-soft);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 450ms ease, transform 550ms ease;
}

.gallery-card.is-active {
  border-color: rgba(239, 233, 221, 0.78);
  box-shadow: 0 30px 70px rgba(9, 14, 22, 0.5);
}

.gallery-card.is-active::after,
.gallery-card.is-active span {
  opacity: 1;
}

.gallery-card.is-active span {
  transform: translateY(0);
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.045);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--secondary-soft);
  outline-offset: 3px;
}

.gallery-control {
  position: relative;
  z-index: 20;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(239, 233, 221, 0.46);
  border-radius: 50%;
  color: var(--secondary-soft);
  background: rgba(247, 244, 238, 0.08);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 300ms ease, background 300ms ease, transform 300ms ease;
}

.gallery-control-next {
  justify-self: end;
}

.gallery-control svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.gallery-control:hover,
.gallery-control:focus-visible {
  color: var(--primary-dark);
  background: var(--secondary-soft);
  outline: none;
  transform: scale(1.06);
}

.gallery-footer {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(160px, 420px) auto;
  width: min(100% - 48px, 880px);
  margin: 4px auto 0;
  align-items: center;
  gap: 18px;
}

.gallery-status,
.gallery-instruction {
  margin: 0;
  color: rgba(247, 244, 238, 0.62);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-status {
  display: flex;
  gap: 4px;
}

.gallery-status span:first-child {
  color: var(--secondary-soft);
}

.gallery-progress {
  height: 1px;
  overflow: hidden;
  background: rgba(239, 233, 221, 0.22);
}

.gallery-progress span {
  display: block;
  width: 42.857%;
  height: 100%;
  background: var(--secondary-soft);
  transition: width 800ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

/* ---------- Gallery: scroll-in reveal ---------- */
.gallery-heading,
.gallery-carousel,
.gallery-footer {
  opacity: 0;
  transition:
    opacity 900ms cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 1000ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.gallery-heading { transform: translateY(28px); }
.gallery-carousel { transform: translateY(34px) scale(0.94); }
.gallery-footer { transform: translateY(22px); }

.gallery-showcase.is-visible .gallery-heading,
.gallery-showcase.is-visible .gallery-carousel,
.gallery-showcase.is-visible .gallery-footer,
.gallery-showcase:target .gallery-heading,
.gallery-showcase:target .gallery-carousel,
.gallery-showcase:target .gallery-footer {
  opacity: 1;
  transform: none;
}

.gallery-showcase.is-visible .gallery-carousel {
  transition-delay: 170ms;
}

.gallery-showcase.is-visible .gallery-footer {
  transition-delay: 340ms;
}

.site-footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(88px, 10vw, 150px) clamp(24px, 5vw, 96px) clamp(26px, 3vw, 40px);
  color: var(--secondary-soft);
  background: linear-gradient(180deg, var(--primary-deep) 0%, #0d141f 100%);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.23'/%3E%3C/svg%3E");
}

.footer-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.footer-hero {
  position: relative;
  overflow: hidden;
  font-size: clamp(84px, 20.5vw, 300px);
  height: 0.64em;
  text-align: center;
}

.footer-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.footer-wordmark {
  width: max-content;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--secondary-soft);
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  filter: url("#footer-wordmark-unified-outline");
  opacity: 0;
  transform: translateY(46%);
  transition:
    transform 1500ms cubic-bezier(0.16, 0.8, 0.22, 1),
    opacity 1250ms ease;
}

.site-footer.is-visible .footer-wordmark {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 60ms;
}

.footer-rule {
  height: 1px;
  background: rgba(247, 244, 238, 0.16);
}

.footer-rule-top {
  margin: 0 0 clamp(40px, 4vw, 58px);
}

.footer-rule-bottom {
  margin: clamp(40px, 4vw, 58px) 0 clamp(20px, 2vw, 28px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1.25fr;
  gap: clamp(28px, 4vw, 72px);
}

.footer-col-title {
  margin: 0 0 22px;
  color: var(--secondary-soft);
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-col ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a,
.footer-col span {
  color: rgba(247, 244, 238, 0.6);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.55;
}

.footer-col a {
  display: inline-block;
  transition: color 200ms ease, transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--secondary-soft);
  outline: none;
  transform: translateX(3px);
}

.footer-news {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.32);
  transition: border-color 240ms ease;
}

.footer-news:focus-within {
  border-color: rgba(247, 244, 238, 0.7);
}

.footer-news input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--secondary-soft);
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.footer-news input::placeholder {
  color: rgba(247, 244, 238, 0.5);
}

.footer-news input:focus {
  outline: none;
}

.footer-news button {
  display: grid;
  place-items: center;
  width: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary-soft);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.footer-news button svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-news button:hover,
.footer-news button:focus-visible {
  outline: none;
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.footer-social a {
  display: inline-flex;
  color: rgba(247, 244, 238, 0.72);
  transition: color 220ms ease, transform 220ms ease;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--secondary-soft);
  outline: none;
  transform: translateY(-2px);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
}

.footer-bottom .footer-copy {
  justify-self: start;
}

.footer-bottom .footer-made {
  justify-self: center;
  text-align: center;
}

.footer-bottom .footer-mark {
  justify-self: end;
}

.footer-copy {
  margin: 0;
  color: rgba(247, 244, 238, 0.5);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-made {
  margin: 0;
  color: rgba(247, 244, 238, 0.5);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.footer-made span {
  margin: 0 1px;
}

.footer-made a {
  color: var(--secondary-soft);
  font-weight: 600;
  transition: color 200ms ease, opacity 200ms ease;
}

.footer-made a:hover,
.footer-made a:focus-visible {
  outline: none;
  opacity: 0.72;
}

.footer-mark {
  display: block;
}

.footer-mark img {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 220ms ease;
}

.footer-mark:hover img,
.footer-mark:focus-visible img {
  opacity: 1;
}

.footer-grid,
.footer-bottom {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 850ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 950ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.site-footer.is-visible .footer-grid,
.site-footer.is-visible .footer-bottom {
  opacity: 1;
  transform: translateY(0);
}

.site-footer.is-visible .footer-grid {
  transition-delay: 320ms;
}

.site-footer.is-visible .footer-bottom {
  transition-delay: 420ms;
}


.next-section {
  min-height: 65vh;
  padding: 12vh 7vw;
  background: var(--primary-deep);
  color: var(--ivory);
}

.next-section p {
  margin: 0;
  color: #acb6c5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.next-section h2 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 400;
  line-height: 0.9;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.is-ready [data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

/* the header must not keep a transform at rest, or it becomes the containing
   block for the fixed mobile-nav and the overlay can't cover the viewport */
.is-ready .site-header[data-reveal] {
  transform: none;
}

.is-ready .hero-art {
  opacity: 1;
  transform: translateY(calc(100px + var(--hero-parallax-y, 0px)));
  transition-delay: 100ms;
}

.service-link:focus-visible,
.footer-news button:focus-visible,
.residence-control:focus-visible,
.residence-thumbnail:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.footer-news-copy {
  max-width: 280px;
  margin: -8px 0 22px;
  color: rgba(247, 244, 238, 0.6);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

.footer-news-status {
  max-width: 280px;
  margin: 12px 0 0;
  color: rgba(247, 244, 238, 0.58);
  font-size: 11px;
  line-height: 1.45;
}

.footer-news-status a {
  color: var(--secondary-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.is-ready .hero-foreground {
  opacity: 1;
  transform: translateY(calc(100px + var(--hero-parallax-y, 0px))) scale(1.012);
  transition-delay: 100ms;
}

.is-ready [data-reveal="intro"] {
  transition-delay: 300ms;
}

.is-ready [data-reveal="hero-logo"] {
  transition-delay: 500ms;
}

.is-ready .hero-logo[data-reveal="hero-logo"] {
  transform: translateY(var(--hero-logo-parallax-y, 0px));
}

.is-ready .hero-logo-stroke-layer {
  opacity: 1;
  transform: translateY(var(--hero-logo-parallax-y, 0px));
  transition-delay: 500ms;
}

.hero.is-parallax-scrolling .hero-logo[data-reveal="hero-logo"],
.hero.is-parallax-scrolling .hero-logo-stroke-layer,
.hero.is-parallax-scrolling .hero-art {
  transition: none;
}

.hero-logo[data-reveal="hero-logo"],
.hero-logo-stroke-layer {
  transition: opacity 900ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 900ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.is-ready .hero-logo[data-reveal="hero-logo"],
.is-ready .hero-logo-stroke-layer {
  transition-delay: 500ms;
}

.is-ready [data-reveal="bottom"] {
  transition-delay: 650ms;
}

@keyframes float {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

@keyframes service-starter-reveal {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@media (min-width: 1051px) and (max-width: 1300px) {
  .residence-showcase {
    padding-right: 36px;
    padding-left: 36px;
  }

  .residence-shell {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    width: 100%;
    padding: 0 14px;
  }

  .residence-feature-image {
    width: 100%;
  }

  .residence-heading h2 {
    font-size: clamp(38px, 4vw, 52px);
  }

  .residence-gallery {
    grid-template-columns: 76px 220px 76px;
    gap: 24px;
  }

  .residence-oval {
    width: 220px;
  }

  .residence-control {
    min-width: 70px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .residence-footer {
    grid-template-columns: minmax(250px, 1fr) auto;
    gap: 18px;
  }

  .residence-copy > p:first-child {
    font-size: 12px;
  }
}


@media (max-width: 1050px) {
  .hero {
    --hero-layer-shift: 72px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    column-gap: 0;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 22;
    justify-self: end;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 13px 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 1px;
    margin: auto;
    background: var(--ink);
    transition: transform 200ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 115px var(--page-pad) 38px;
    color: var(--neutral-soft);
    background: var(--blue-deep);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 350ms ease,
      transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1),
      visibility 0s linear 450ms;
  }

  .mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 350ms ease,
      transform 450ms cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--display);
    font-size: clamp(30px, 4.8vw, 56px);
    line-height: 1;
  }

  .mobile-nav a span {
    width: 22px;
    font-family: var(--sans);
    font-size: 8px;
    letter-spacing: 0.12em;
    opacity: 0.45;
  }

  .mobile-nav a.active {
    color: #aebdce;
    font-style: italic;
  }

  .mobile-nav > p {
    margin: 0;
    font-size: 8px;
    letter-spacing: 0.18em;
    opacity: 0.55;
    text-transform: uppercase;
  }

  /* keep the brand and the close button legible above the overlay
     (.brand is absolute, .menu-toggle relative — only the stacking changes) */
  .brand,
  .menu-toggle {
    z-index: 23;
  }

  body.menu-open .site-header::after {
    position: fixed;
    z-index: 22;
    inset: 0 0 auto;
    height: 58px;
    content: "";
    border-bottom: 1px solid var(--line);
    background: var(--secondary-soft);
  }

  .hero-intro {
    width: 28vw;
  }

  .hero-logo {
    top: clamp(120px, 16vh, 180px);
    right: 4vw;
    width: min(56vw, 620px);
  }

  .hero-logo-stroke-layer {
    top: clamp(120px, 16vh, 180px);
    right: 4vw;
    width: min(56vw, 620px);
  }

  .hero-white-layer {
    height: calc(clamp(380px, 40vh, 480px) + var(--hero-layer-shift));
  }

  .hero-art img,
  .hero-foreground img {
    top: auto;
    right: -10%;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 210%;
    max-width: none;
    transform: none;
    transform-origin: center bottom;
  }

  .hero-foreground,
  .is-ready .hero-foreground {
    transform: none;
  }

  .residence-showcase {
    height: auto;
    padding: 68px 5vw;
  }

  .residence-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 38px;
    width: min(90vw, 780px);
    height: auto;
    padding: 0;
    min-height: auto;
    border: 0;
  }

  .residence-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .residence-feature-image {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    width: min(100%, 620px);
    height: min(58vw, 500px);
  }

  .residence-gallery {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(74px, 1fr) minmax(270px, 370px) minmax(74px, 1fr);
    justify-content: center;
  }

  .residence-footer {
    grid-column: 1;
    grid-row: 4;
  }

  .services-showcase {
    min-height: 0;
    padding: 48px 5vw;
  }

  .services-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto minmax(570px, 68vw);
    width: min(100%, 900px);
    height: auto;
  }

  .services-brand {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 44px;
  }

  .services-intro {
    grid-column: 2;
    grid-row: 1;
    padding: 0 28px 44px;
  }

  .services-intro h2 {
    font-size: clamp(44px, 6.2vw, 62px);
  }

  .services-detail {
    margin-top: 25px;
  }

  .services-visual {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
  }

  .services-list {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    align-self: stretch;
  }

  .service-link {
    min-height: 0;
    padding: 18px 28px;
    justify-content: center;
    border-bottom: 1px solid rgba(48, 74, 110, 0.12);
  }

  .service-link.is-active {
    color: var(--primary-dark);
    text-shadow: none;
  }

  .service-link-number {
    top: 18px;
    left: 28px;
  }

  .service-link-title {
    font-size: clamp(27px, 3.5vw, 39px);
  }

  .about-showcase {
    --about-pad-x: clamp(20px, 5vw, 60px);
    padding: clamp(48px, 8vw, 72px) var(--about-pad-x);
  }

  .about-shell {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    gap: clamp(14px, 2.4vw, 22px);
  }

  .about-content {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 0 clamp(18px, 3vw, 30px);
  }

  .about-img {
    height: clamp(230px, 42vw, 380px);
    transform: none;
  }

  .about-img-1 { grid-column: 1; grid-row: 2; }
  .about-img-3 { grid-column: 2; grid-row: 2; }
  .about-img-2 { grid-column: 1; grid-row: 3; }
  .about-img-4 { grid-column: 2; grid-row: 3; }

  /* mobile: reveal as a clean fade only */
  .about-img-1,
  .about-img-2,
  .about-img-3,
  .about-img-4,
  .about-showcase.is-visible .about-img-1,
  .about-showcase.is-visible .about-img-2,
  .about-showcase.is-visible .about-img-3,
  .about-showcase.is-visible .about-img-4 {
    transform: none;
  }

  .gallery-showcase {
    min-height: 780px;
  }

  .gallery-heading h2 {
    font-size: clamp(44px, 7vw, 68px);
  }

  .gallery-carousel {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    width: calc(100% - 24px);
  }

  .gallery-viewport {
    height: clamp(340px, 43vw, 430px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 40px;
  }

}

@media (min-width: 1051px) and (max-width: 1400px) {
  .hero-art img,
  .hero-foreground img {
    height: 200%;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: max(720px, 100svh);
    --mobile-white-height: clamp(340px, 42svh, 430px);
  }

  .site-header {
    width: calc(100% - 48px);
    min-height: 82px;
  }

  body.menu-open .site-header::after {
    height: 82px;
  }

  .mobile-nav {
    padding: 110px 24px 28px;
  }

  .mobile-nav a {
    padding: 8px 0;
    font-size: 29px;
  }

  .brand {
    width: 125px;
    height: 48px;
  }

  .brand img {
    width: 143px;
  }

  .hero-rule {
    top: calc(81px - var(--hero-layer-shift));
    right: 20px;
    left: 20px;
  }

  .hero-intro {
    top: auto;
    bottom: clamp(92px, 12svh, 130px);
    left: 20px;
    width: min(82vw, 340px);
    box-sizing: border-box;
    padding: 14px 16px 18px;
    background: rgba(255, 255, 255, 0.82);
  }

  .eyebrow {
    margin-bottom: 13px;
    color: #596e8b;
  }

  .eyebrow span {
    background: var(--accent);
  }

  .intro-copy {
    color: #2b4263;
    font-size: 18px;
    letter-spacing: 0.05em;
    text-shadow: none;
  }

  .hero-logo {
    right: auto;
    left: 50%;
    top: clamp(124px, 19svh, 174px);
    bottom: auto;
    width: min(92vw, 380px);
  }

  .hero-logo-stroke-layer {
    right: auto;
    left: 50%;
    top: clamp(124px, 19svh, 174px);
    bottom: auto;
    width: min(92vw, 380px);
  }

  .hero-logo[data-reveal="hero-logo"] {
    transform: translate(-50%, calc(14px + var(--hero-logo-parallax-y, 0px)));
  }

  .is-ready .hero-logo[data-reveal="hero-logo"] {
    transform: translate(-50%, var(--hero-logo-parallax-y, 0px));
  }

  .hero-logo-stroke-layer {
    transform: translate(-50%, calc(14px + var(--hero-logo-parallax-y, 0px)));
  }

  .is-ready .hero-logo-stroke-layer {
    transform: translate(-50%, var(--hero-logo-parallax-y, 0px));
  }

  .hero-white-layer {
    height: calc(var(--mobile-white-height) + var(--hero-layer-shift));
  }

  .hero-art {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: translateY(var(--hero-parallax-y, 0px));
  }

  .hero-foreground {
    transform: none;
  }

  .is-ready .hero-art {
    transform: translateY(var(--hero-parallax-y, 0px));
  }

  .is-ready .hero-foreground {
    transform: none;
  }

  .hero-art img {
    position: absolute;
    top: auto;
    right: -10%;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 200%;
    max-width: none;
    transform: none;
    transform-origin: center bottom;
  }

  .hero-foreground img {
    position: absolute;
    top: auto;
    right: -5%;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 200%;
    object-position: 72% bottom;
    max-width: none;
    transform: none;
    transform-origin: center bottom;
  }

  .hero-bottom {
    right: 20px;
    bottom: 24px;
    left: 20px;
    display: flex;
    align-items: stretch;
  }

  .hero-highlights,
  .scroll-cue {
    display: none;
  }

  .residence-showcase {
    padding: 52px 24px 60px;
  }

  .residence-shell {
    width: 100%;
    gap: 32px;
  }

  .residence-heading {
    text-align: left;
  }

  .residence-kicker {
    justify-content: flex-start;
    font-size: 8px;
  }

  .residence-heading h2 {
    font-size: clamp(42px, 13vw, 60px);
    line-height: 0.93;
  }

  .residence-feature-image {
    height: 92vw;
    max-height: 470px;
    border-radius: 24px 24px 24px 72px;
  }

  .residence-gallery {
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
    gap: 20px;
  }

  .residence-control,
  .residence-pause {
    display: none;
  }

  .residence-oval {
    width: min(100%, 230px);
  }

  .residence-control {
    min-width: 70px;
    min-height: 44px;
    padding: 7px 4px;
    font-size: 6px;
  }

  .residence-control span {
    white-space: nowrap;
  }

  .residence-thumbnail {
    width: 44px;
    height: 44px;
  }

  .residence-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }

  .residence-copy > p:first-child {
    font-size: 19px;
  }

  .residence-cta {
    justify-self: start;
  }

  .services-showcase {
    padding: 42px 24px 54px;
  }

  .services-shell {
    display: flex;
    width: 100%;
    flex-direction: column;
    border: 0;
    background: none;
  }

  .services-brand {
    order: 1;
    width: 126px;
    margin: 0 0 30px;
  }

  .services-intro {
    order: 2;
    width: 100%;
    min-width: 0;
    padding: 0 0 36px;
  }

  .services-intro h2 {
    max-width: 100%;
    font-size: clamp(36px, 9.8vw, 44px);
    line-height: 0.96;
  }

  .services-detail-copy {
    max-width: 100%;
    font-size: 19px;
    overflow-wrap: break-word;
  }

  /* mobile: services becomes an accordion — hide the shared visual + detail */
  .services-visual,
  .services-intro .services-detail {
    display: none;
  }

  .services-list {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    border-top: 1px solid rgba(48, 74, 110, 0.14);
  }

  .service-link {
    min-height: 0;
    padding: 22px 24px;
    justify-content: center;
    border-bottom: 1px solid rgba(48, 74, 110, 0.14);
    transition: background 320ms ease, color 320ms ease;
  }

  .service-link.is-active {
    color: var(--secondary-soft);
    background: var(--primary-dark);
    text-shadow: none;
  }

  .service-link-number {
    top: 20px;
    left: auto;
    right: 24px;
  }

  .service-link-title {
    font-size: 30px;
  }

  .service-link:hover .service-link-title,
  .service-link:focus-visible .service-link-title,
  .service-link.is-active .service-link-title {
    transform: none;
  }

  .service-link::after {
    display: none;
  }

  /* the expandable panel: image + detail, revealed for the active card */
  .service-panel {
    display: grid;
    grid-template-rows: 0fr;
    background: var(--primary-dark);
    color: var(--secondary-soft);
    transition: grid-template-rows 540ms cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  .service-link.is-active + .service-panel {
    grid-template-rows: 1fr;
  }

  .service-panel-inner {
    overflow: hidden;
  }

  .service-panel-img {
    display: block;
    width: 100%;
    height: min(86vw, 420px);
    object-fit: cover;
  }

  .service-panel-detail {
    padding: 18px 24px 28px;
  }

  .service-panel-title {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .service-panel-copy {
    margin: 0;
    font-family: var(--display);
    font-size: 17px;
    line-height: 1.38;
    color: rgba(247, 244, 238, 0.82);
  }

  .gallery-showcase {
    min-height: 720px;
    padding: 54px 0 32px;
  }

  .about-showcase {
    --about-pad-x: 24px;
    padding: 44px var(--about-pad-x);
  }

  .about-title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: min(420px, 100%);
  }

  .about-img {
    height: clamp(230px, 60vw, 330px);
  }

  .gallery-heading {
    width: calc(100% - 48px);
  }

  .gallery-kicker {
    margin-bottom: 17px;
  }

  .gallery-heading h2 {
    font-size: clamp(38px, 10.5vw, 50px);
    line-height: 0.98;
  }

  .gallery-categories {
    margin-top: 18px;
    font-size: 7px;
  }

  .gallery-categories span {
    margin: 0 4px;
  }

  .gallery-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: calc(100% - 12px);
    margin-top: 12px;
  }

  .gallery-viewport {
    height: 326px;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
  }

  .gallery-control svg {
    width: 16px;
  }

  .gallery-card {
    width: 150px;
    height: 270px;
    border-radius: 22px;
  }

  .gallery-footer {
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100% - 48px);
    gap: 13px;
  }

  .gallery-instruction {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .site-footer {
    padding: 42px 24px 28px;
  }

  .footer-hero {
    font-size: clamp(50px, 15.5vw, 90px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }

  .footer-col-news {
    grid-column: 1 / -1;
  }

  .footer-news {
    max-width: 420px;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-bottom .footer-copy,
  .footer-bottom .footer-mark {
    justify-self: center;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 720px;
  }

  .gallery-heading h2 {
    font-size: 36px;
  }

  .gallery-viewport {
    height: 305px;
  }

  .gallery-card {
    width: 138px;
    height: 250px;
  }

}

.signature-section,
.trust-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(56px, 10vw, 168px);
  padding: clamp(90px, 11vw, 170px) clamp(24px, 8vw, 130px) clamp(64px, 7vw, 104px);
}

.signature-section {
  color: var(--primary-dark);
  background: var(--secondary);
}

.signature-heading h2,
.trust-heading h2 {
  max-width: 520px;
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(56px, 5.8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 0.88;
  text-wrap: balance;
}

.signature-title-line {
  display: block;
  white-space: nowrap;
}

.signature-title-em {
  color: var(--primary);
}

.signature-heading h2 em,
.trust-heading h2 em {
  color: var(--primary);
  font-weight: 400;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-self: start;
  margin-top: clamp(76px, 8vw, 132px);
}

.signature-grid article {
  display: grid;
  grid-template-columns: 42px minmax(150px, 0.58fr) minmax(220px, 0.9fr);
  gap: clamp(12px, 1.2vw, 20px);
  align-items: start;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

.principle-icon {
  width: 34px;
  height: 34px;
  margin-top: 2px;
  color: var(--primary-muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  transition: color 260ms cubic-bezier(0.22, 0.72, 0.2, 1), transform 420ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.signature-grid article:hover h3 {
  color: var(--primary);
}

.signature-grid article:hover .principle-icon {
  color: var(--primary);
  transform: translateY(-2px);
}

.signature-grid article:last-child {
  border-bottom: 1px solid var(--line);
}

.signature-grid h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 2.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.94;
  transition: color 260ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.signature-grid p {
  max-width: 340px;
  margin: 0;
  color: rgba(28, 44, 66, 0.72);
  font-size: 14px;
  line-height: 1.62;
}

/* Keep this register quiet on touch devices. */
@media (hover: none) {
  .signature-grid article:hover h3 { color: inherit; }
  .signature-grid article:hover .principle-icon { color: var(--primary-muted); transform: none; }
}

.trust-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--secondary-soft);
  background: var(--primary-deep);
}

.trust-section::before {
  position: absolute;
  inset: -8%;
  z-index: -2;
  content: "";
  background: url("assets/background.jpg") center / cover no-repeat;
  filter: saturate(0.78) contrast(1.06);
  transform: translate3d(0, var(--trust-parallax-y, 0px), 0) scale(1.08);
  will-change: transform;
}

.trust-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(100deg, rgba(8, 24, 42, 0.92) 0%, rgba(8, 24, 42, 0.76) 48%, rgba(8, 24, 42, 0.88) 100%);
  pointer-events: none;
}

.trust-section > * {
  position: relative;
  z-index: 1;
}

.trust-section .section-kicker {
  color: var(--secondary);
}

.trust-heading h2 em {
  color: #b9c7d8;
}

.trust-list {
  display: grid;
  gap: 0;
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.trust-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-light);
  color: rgba(247, 244, 238, 0.78);
  font-family: var(--display);
  font-size: clamp(21px, 1.7vw, 29px);
  line-height: 1.12;
}

.footer-hero {
  height: 0.75em;
}

.site-footer.is-visible .footer-wordmark {
  opacity: 0.4;
  transform: translateY(2%);
}

@media (prefers-reduced-motion: reduce) {
  .trust-section::before {
    transform: scale(1.08);
  }
}

/* Hero composition: transparent copy zone and local featured-image slider. */
.hero-intro {
  top: auto;
  bottom: clamp(170px, 15vh, 220px);
  left: clamp(28px, 5vw, 96px);
  width: min(420px, 32vw);
  padding: 0;
  background: transparent;
}

.hero-intro .intro-copy {
  color: #f7f4ee;
  text-shadow: 0 2px 20px rgba(7, 18, 31, 0.36);
}

.hero-intro .eyebrow {
  color: rgba(247, 244, 238, 0.72);
  text-shadow: 0 2px 16px rgba(7, 18, 31, 0.3);
}

.hero-intro .eyebrow span {
  background: #dceaf7;
}

.hero-image-slider {
  position: absolute;
  z-index: 6;
  right: clamp(28px, 5vw, 90px);
  bottom: clamp(170px, 15vh, 220px);
  width: min(34vw, 560px);
  height: clamp(300px, 34vw, 460px);
  overflow: hidden;
  border: 1px solid rgba(247, 244, 238, 0.42);
  border-radius: 28px 28px 28px 104px;
  background: #0e2945;
  box-shadow: 0 28px 70px rgba(7, 18, 31, 0.32);
}

.hero-image-slider::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(7, 18, 31, 0.56) 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 760ms cubic-bezier(0.22, 0.72, 0.2, 1), transform 1100ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
}

.hero-slider-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-slider-controls button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(247, 244, 238, 0.48);
  border-radius: 50%;
  color: #f7f4ee;
  background: rgba(7, 18, 31, 0.28);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.hero-slider-controls button:hover,
.hero-slider-controls button:focus-visible {
  color: #0e2945;
  background: #dceaf7;
  outline: none;
  transform: translateY(-2px);
}

@media (max-width: 1050px) {
  .hero-intro {
    bottom: clamp(170px, 17vh, 220px);
    left: 5vw;
    width: min(340px, 34vw);
  }

  .hero-image-slider {
    right: 5vw;
    bottom: clamp(170px, 17vh, 220px);
    width: min(38vw, 400px);
    height: clamp(280px, 38vw, 400px);
  }
}

@media (max-width: 700px) {
  .hero-intro {
    top: clamp(250px, 34svh, 320px);
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    padding: 0;
    background: transparent;
  }

  .hero-intro .intro-copy {
    font-size: 17px;
    line-height: 1.28;
  }

  .hero-image-slider {
    right: 20px;
    bottom: 72px;
    left: 20px;
    width: auto;
    height: 214px;
    border-radius: 22px 22px 22px 72px;
  }

  .hero-slider-controls {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Annotated hero composition: one glass panel with image above copy. */
.hero-editorial-panel {
  position: absolute;
  z-index: 8;
  top: clamp(100px, 11vh, 150px);
  left: clamp(24px, 3.2vw, 64px);
  display: grid;
  width: max(300px, calc(100vw - 16.7vw - min(52vw, 920px)));
  height: clamp(500px, 38vw, 820px);
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(24px, 1.6vw, 32px);
  padding: clamp(34px, 2.2vw, 46px) clamp(24px, 1.7vw, 34px) clamp(32px, 2vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(247, 244, 238, 0.38);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(220, 234, 247, 0.26), rgba(220, 234, 247, 0.1));
  box-shadow: 0 24px 64px rgba(7, 18, 31, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

.hero-editorial-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 42%);
}

.hero-editorial-panel .hero-image-slider,
.hero-editorial-panel .hero-intro {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
}

.hero-editorial-panel .hero-image-slider {
  z-index: 1;
  height: auto;
  aspect-ratio: 1.6;
  border-radius: 20px 20px 20px 72px;
  box-shadow: 0 18px 36px rgba(7, 18, 31, 0.2);
}

.hero-editorial-panel .hero-intro {
  z-index: 1;
  height: auto;
  padding: 24px 20px 30px;
  background: transparent;
}

.hero-editorial-panel .intro-copy {
  color: #173657;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.28;
  letter-spacing: 0.06em;
  text-shadow: none;
}

.hero-editorial-panel .eyebrow {
  color: #35587e;
  text-shadow: none;
}

.hero-editorial-panel .eyebrow span {
  background: #35587e;
}

@keyframes hero-background-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, 7%, 0);
  }
}

.hero-art img {
  animation: hero-background-drift 24s ease-in-out infinite;
  will-change: transform;
}

@media (min-width: 701px) and (max-width: 1050px) {
  .hero-logo,
  .hero-logo-stroke-layer {
    right: 4vw;
    width: min(48vw, 520px);
  }

  .hero-editorial-panel {
    top: clamp(100px, 11vh, 150px);
    left: 5vw;
    width: max(230px, calc(100vw - 19vw - min(48vw, 520px)));
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: max(720px, 100svh);
  }

  .hero-editorial-panel {
    top: auto;
    bottom: clamp(24px, 5svh, 44px);
    right: 20px;
    left: 20px;
    width: auto;
    height: auto;
    grid-template-rows: auto auto;
    gap: 16px;
    padding: 24px 20px 22px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(220, 234, 247, 0.16), rgba(220, 234, 247, 0.06));
    backdrop-filter: blur(12px) saturate(1.04);
    -webkit-backdrop-filter: blur(12px) saturate(1.04);
  }

  .hero-editorial-panel .hero-image-slider {
    height: clamp(145px, 38vw, 180px);
    aspect-ratio: auto;
    border-radius: 18px 18px 18px 56px;
  }

  .hero-editorial-panel .hero-intro .intro-copy {
    color: #f7f4ee;
    font-size: 17px;
    line-height: 1.28;
    text-shadow: 0 2px 18px rgba(7, 18, 31, 0.42);
  }

  .hero-editorial-panel .hero-intro {
    padding: 14px 16px 10px;
  }

  .hero-editorial-panel .hero-intro .eyebrow {
    color: rgba(247, 244, 238, 0.82);
    text-shadow: 0 2px 14px rgba(7, 18, 31, 0.36);
  }

  .hero-editorial-panel .hero-intro .eyebrow span {
    background: #f7f4ee;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 760px) {
  .signature-section,
  .trust-section {
    display: block;
    padding: 78px 24px 64px;
  }

  .signature-heading h2 {
    max-width: 342px;
    font-size: clamp(34px, 10.5vw, 54px);
    line-height: 0.9;
  }

  .signature-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 58px;
  }

  .signature-grid article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0 26px;
  }

  .principle-icon {
    width: 28px;
    height: 28px;
    grid-row: 1 / 3;
    margin-top: 1px;
  }

  .signature-grid h3 {
    margin: 26px 0 12px;
  }

  .trust-list {
    margin-top: 58px;
  }
}

/* Gallery carousel: keep every card inside the safe viewport. */
.gallery-carousel {
  width: min(calc(100% - 96px), 1560px);
}

.gallery-card {
  text-decoration: none;
}

@media (max-width: 700px) {
  .gallery-carousel {
    width: calc(100% - 40px);
  }
}

/* Homepage gallery lightbox. */
body.home-gallery-lightbox-open {
  overflow: hidden;
}

.home-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}

.home-gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 300ms ease;
}

.home-gallery-lightbox.is-closing {
  opacity: 0;
  transition: opacity 240ms ease;
}

.home-gallery-transition-image {
  position: fixed;
  z-index: 11002;
  display: block;
  margin: 0;
  overflow: hidden;
  object-position: center;
  pointer-events: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform-origin: top left;
  will-change: transform;
}

.home-gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 31, 0.94);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.home-gallery-lightbox-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  padding: 0 clamp(22px, 4vw, 72px);
}

.home-gallery-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(220, 234, 247, 0.22);
}

.home-gallery-lightbox-header p,
.home-gallery-lightbox-header button {
  margin: 0;
  color: rgba(247, 244, 238, 0.78);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.home-gallery-lightbox-header button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #f7f4ee;
  background: transparent;
  cursor: pointer;
}

.home-gallery-lightbox-header button span {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 0.5;
}

.home-gallery-lightbox-header button:hover,
.home-gallery-lightbox-header button:focus-visible {
  color: #dceaf7;
}

.home-gallery-lightbox figure {
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  padding: clamp(24px, 4vw, 64px) 0;
}

.home-gallery-lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1480px);
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.gallery-footer {
  grid-template-columns: minmax(160px, 420px);
  justify-content: center;
}

.home-gallery-lightbox figcaption {
  position: absolute;
  right: clamp(22px, 4vw, 72px);
  bottom: 24px;
  left: clamp(22px, 4vw, 72px);
  color: rgba(247, 244, 238, 0.62);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .home-gallery-lightbox-shell {
    grid-template-rows: 64px minmax(0, 1fr);
    padding: 0 16px;
  }

  .home-gallery-lightbox-header p,
  .home-gallery-lightbox-header button {
    font-size: 8px;
  }

  .home-gallery-lightbox img {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 132px);
    border-radius: 8px;
  }

  .home-gallery-lightbox figcaption {
    right: 16px;
    bottom: 18px;
    left: 16px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-gallery-lightbox {
    transition: none;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .signature-section {
    display: block;
    padding-top: 96px;
  }

  .signature-heading h2 {
    max-width: 620px;
    font-size: clamp(48px, 7vw, 66px);
  }

  .signature-grid {
    margin-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .about-img img {
    --about-image-parallax-y: 0px;
    --about-image-scale: 1;
  }
}

@media (max-width: 700px) {
  .services-list {
    background: transparent;
  }

  .service-link {
    color: var(--primary-dark);
    text-shadow: none;
  }
}

/* Principles: image-led editorial spread. */
.signature-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(64px, 9vw, 150px);
  row-gap: clamp(56px, 7vw, 96px);
  min-height: clamp(820px, 88svh, 1080px);
  padding: clamp(96px, 10vw, 150px) clamp(28px, 8vw, 130px) clamp(72px, 8vw, 112px);
}

.signature-heading {
  grid-column: 1;
  grid-row: 1;
}

.signature-heading h2 {
  max-width: 640px;
  font-size: clamp(56px, 5.5vw, 94px);
}

.signature-image {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100%;
  height: clamp(240px, 22vw, 340px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 28px 28px 28px 110px;
  background: #dceaf7;
  box-shadow: 0 24px 52px rgba(28, 44, 66, 0.12);
}

.signature-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(19, 29, 44, 0.02) 34%, rgba(19, 29, 44, 0.58) 100%);
  pointer-events: none;
}

.signature-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transition: transform 900ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.signature-image:hover img {
  transform: scale(1.035);
}

.signature-image figcaption {
  position: absolute;
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 30px);
  left: clamp(22px, 3vw, 42px);
  z-index: 1;
  color: var(--secondary-soft);
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
}

.signature-image figcaption span {
  display: block;
  margin-bottom: 10px;
  color: #dceaf7;
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signature-grid {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  margin-top: 0;
  align-content: center;
}

.signature-grid article {
  grid-template-columns: 44px minmax(130px, 0.52fr) minmax(220px, 0.92fr);
  padding: 30px 0 32px;
}

.signature-grid p {
  max-width: 390px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .signature-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 52px;
    min-height: 0;
    padding: 96px 28px 82px;
  }

  .signature-heading,
  .signature-image,
  .signature-grid {
    grid-column: 1;
  }

  .signature-heading { grid-row: 1; }
  .signature-image { grid-row: 2; height: 320px; }
  .signature-grid { grid-row: 3; }
}

@media (max-width: 760px) {
  .signature-section {
    gap: 48px;
    padding: 88px 20px 76px;
  }

  .signature-heading h2 {
    max-width: 342px;
    font-size: clamp(34px, 10.5vw, 54px);
  }

  .signature-image {
    height: 240px;
    border-radius: 22px 22px 22px 72px;
  }

  .signature-grid article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 22px 0 26px;
  }

  .signature-grid h3 {
    margin: 0 0 12px;
  }

  .signature-grid p {
    grid-column: 2;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-image img {
    transition: none;
  }
}

/* Residence showcase: full-bleed editorial composition. */
.residence-showcase {
  --residence-pad-top: clamp(88px, 8vw, 128px);
  --residence-pad-bottom: clamp(48px, 6vw, 80px);
  min-height: clamp(700px, 82svh, 900px);
  padding: var(--residence-pad-top) clamp(32px, 7vw, 96px) var(--residence-pad-bottom);
  color: #f7f4ee;
  background: #0e2945;
}

.residence-showcase::before {
  display: none;
}

.residence-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(40px, 7vw, 110px);
  width: min(100%, 1280px);
  height: 100%;
  min-height: 620px;
  padding: 0;
}

.residence-feature-image {
  position: absolute;
  z-index: 0;
  grid-column: auto;
  grid-row: auto;
  top: calc(var(--residence-pad-top) * -1);
  right: auto;
  bottom: calc(var(--residence-pad-bottom) * -1);
  left: 50%;
  width: 100vw;
  height: auto;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: translateX(-50%);
}

.residence-feature-image::after {
  position: absolute;
  inset: 0;
  display: block;
  content: "";
  background: linear-gradient(90deg, rgba(7, 24, 43, 0.92) 0%, rgba(7, 24, 43, 0.72) 34%, rgba(7, 24, 43, 0.24) 74%, rgba(7, 24, 43, 0.48) 100%);
  pointer-events: none;
}

.residence-feature-image img {
  width: 100%;
  height: calc(100% + 84px);
  max-width: none;
  object-position: center;
  filter: saturate(0.88) contrast(1.04);
  transform: translate3d(0, var(--residence-parallax-y, 0px), 0) scale(1.08);
  transition: none;
  will-change: transform;
}

.residence-showcase:hover .residence-feature-image img {
  transform: translate3d(0, var(--residence-parallax-y, 0px), 0) scale(1.08);
}

.residence-showcase.is-visible .residence-feature-image {
  transform: translateX(-50%);
}

.residence-heading {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  padding-bottom: clamp(34px, 5vw, 70px);
  text-align: left;
}

.residence-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: rgba(247, 244, 238, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.residence-kicker::before {
  width: 28px;
  height: 1px;
  content: "";
  background: #dceaf7;
}

.residence-heading h2 {
  max-width: 560px;
  margin: 0;
  color: #f7f4ee;
  font-size: clamp(52px, 6.4vw, 94px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.residence-gallery {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 20px;
  outline: none;
}

.residence-carousel {
  gap: 18px;
}

.residence-oval {
  width: clamp(250px, 25vw, 350px);
  border-color: rgba(247, 244, 238, 0.42);
  background: rgba(247, 244, 238, 0.12);
  box-shadow: 0 24px 50px rgba(4, 16, 29, 0.28);
}

.residence-thumbnails {
  gap: 10px;
}

.residence-thumbnail {
  border-color: rgba(247, 244, 238, 0.48);
}

.residence-thumbnail:hover,
.residence-thumbnail:focus-visible,
.residence-thumbnail.is-active {
  border-color: #dceaf7;
}

.residence-control,
.residence-pause {
  display: none !important;
}

.residence-footer {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 3;
  grid-template-columns: minmax(280px, 420px) auto;
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid rgba(247, 244, 238, 0.28);
}

.residence-copy > p:first-child {
  color: rgba(247, 244, 238, 0.86);
  font-size: 15px;
  line-height: 1.45;
}

.residence-spec {
  color: rgba(220, 234, 247, 0.78);
}

.residence-cta span,
.residence-cta::after,
.residence-cta svg {
  background: #dceaf7;
}

.residence-cta {
  color: #0e2945;
}

.residence-cta svg {
  stroke: #0e2945;
}

.residence-showcase.is-parallax-scrolling .residence-feature-image img {
  transition: none;
}

@media (max-width: 1050px) {
  .residence-showcase {
    --residence-pad-top: 96px;
    --residence-pad-bottom: 56px;
    min-height: 780px;
    padding: var(--residence-pad-top) clamp(24px, 6vw, 64px) var(--residence-pad-bottom);
  }

  .residence-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 38px;
    min-height: 668px;
  }

  .residence-heading {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    padding-bottom: 0;
  }

  .residence-gallery {
    grid-column: 1;
    grid-row: 2;
  }

  .residence-footer {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(240px, 1fr) auto;
  }

  .residence-feature-image img {
    height: calc(100% + 64px);
  }
}

@media (max-width: 700px) {
  .residence-showcase {
    --residence-pad-top: 84px;
    --residence-pad-bottom: 48px;
    min-height: 820px;
    padding: var(--residence-pad-top) 20px var(--residence-pad-bottom);
  }

  .residence-shell {
    gap: 34px;
    min-height: 688px;
  }

  .residence-heading h2 {
    max-width: 340px;
    font-size: clamp(50px, 15vw, 72px);
  }

  .residence-gallery {
    gap: 16px;
  }

  .residence-oval {
    width: min(72vw, 280px);
  }

  .residence-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .residence-copy > p:first-child {
    font-size: 16px;
  }

  .residence-cta {
    justify-self: start;
  }

  .residence-feature-image img {
    height: calc(100% + 48px);
  }

  .residence-feature-image::after {
    background: linear-gradient(180deg, rgba(7, 24, 43, 0.78) 0%, rgba(7, 24, 43, 0.48) 54%, rgba(7, 24, 43, 0.82) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .residence-feature-image img {
    --residence-parallax-y: 0px;
    transform: scale(1.08);
  }
}

/* Final Residence/Services rhythm tuning. */
.residence-showcase {
  background: #ffffff;
}

.services-showcase {
  padding: clamp(64px, 7vw, 96px) clamp(24px, 4vw, 72px);
}

.services-shell {
  height: clamp(520px, 62svh, 660px);
}

.services-showcase .service-image {
  transition: opacity 720ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.services-showcase .services-detail,
.services-showcase .services-intro,
.services-showcase .services-cta,
.services-showcase .service-link,
.services-showcase .service-link-title,
.services-showcase .service-link::after {
  transition-duration: 420ms;
  transition-timing-function: cubic-bezier(0.22, 0.72, 0.2, 1);
}

.services-showcase .service-link {
  min-height: 122px;
  padding: 28px clamp(16px, 1.6vw, 28px) 18px;
}

@media (max-width: 1050px) {
  .services-showcase {
    padding: 64px 5vw;
  }

  .services-shell {
    height: auto;
    grid-template-rows: auto minmax(420px, 52vw);
  }

  .service-link:hover .service-link-title {
    transform: none;
  }

  .service-link:hover::after {
    opacity: 0;
    transform: scaleX(0);
  }

  .services-cta:hover {
    transform: none;
  }

  .services-cta:hover svg {
    background: var(--primary-dark);
    transform: none;
  }
}

@media (max-width: 700px) {
  .services-showcase {
    padding: 56px 20px 68px;
  }

  .services-showcase .service-link {
    min-height: 0;
    padding: 18px 24px;
  }
}

/* Compact rhythm pass for the two adjacent homepage sections. */
.residence-showcase {
  --residence-pad-top: clamp(64px, 6vw, 88px);
  --residence-pad-bottom: clamp(40px, 5vw, 60px);
  min-height: clamp(620px, 72svh, 760px);
  padding: var(--residence-pad-top) clamp(28px, 6vw, 84px) var(--residence-pad-bottom);
}

.residence-shell {
  min-height: 520px;
}

.residence-oval {
  width: clamp(220px, 21vw, 290px);
}

.services-showcase {
  padding: clamp(48px, 5vw, 64px) clamp(24px, 4vw, 72px);
}

.services-shell {
  height: clamp(440px, 52svh, 560px);
}

@media (min-width: 1051px) {
  /* Keep the desktop service navigation in its own row below the intro. */
  .services-showcase .services-shell {
    height: auto;
    min-height: clamp(440px, 52svh, 560px);
    row-gap: 24px;
  }

  .services-showcase .services-intro {
    min-height: 0;
    padding-block: 0;
  }

  .services-showcase .services-list {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .residence-showcase {
    min-height: 610px;
    padding: 64px 40px 42px;
  }

  .residence-shell {
    grid-template-columns: minmax(250px, 0.72fr) minmax(320px, 1.28fr);
    grid-template-rows: 1fr auto;
    column-gap: 36px;
    gap: 24px;
    min-height: 500px;
  }

  .residence-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .residence-gallery {
    grid-column: 2;
    grid-row: 1;
  }

  .residence-footer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .residence-oval {
    width: min(100%, 250px);
  }

  .services-showcase {
    padding: 52px 5vw;
  }

  .services-showcase .services-intro {
    min-height: 0;
    padding: 0 28px 44px;
  }

  .services-showcase .services-shell {
    height: auto;
  }

  .services-shell {
    grid-template-rows: auto minmax(320px, 42vw);
  }
}

@media (max-width: 700px) {
  .residence-showcase {
    min-height: 660px;
    padding: 72px 20px 42px;
  }

  .residence-shell {
    gap: 24px;
    min-height: 548px;
  }

  .residence-oval {
    width: min(58vw, 220px);
  }

  .services-showcase {
    padding: 48px 20px 52px;
  }

  .services-shell {
    height: auto;
  }

  .services-intro {
    padding-bottom: 24px;
  }

  .service-panel-img {
    height: min(62vw, 280px);
  }
}

/* About spread: larger title, balanced copy columns. */
.about-title {
  font-size: clamp(48px, 5.3vw, 84px);
}

.about-body {
  grid-template-columns: 1fr;
  max-width: min(720px, 100%);
  column-gap: 0;
}

.about-body p {
  grid-column: 1;
  grid-row: auto;
}

@media (max-width: 760px) {
  .about-title {
    font-size: clamp(34px, 11vw, 52px);
  }

}
