: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", Arial, sans-serif;
}

* {
  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 {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 17% 35%, rgba(255, 255, 255, 0.95), transparent 35%),
    linear-gradient(180deg, var(--ivory-soft) 0%, var(--ivory) 66%, var(--secondary-shade) 100%);
}

.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: 57px;
  right: 3.5vw;
  left: clamp(215px, 16vw, 280px);
  height: 1px;
  background: var(--line);
}

.hero-intro {
  position: absolute;
  z-index: 8;
  top: clamp(82px, 11vh, 104px);
  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-weight: 400;
  line-height: 1.25;
}

.hero-word {
  position: absolute;
  z-index: 1;
  top: 12.5%;
  left: 61%;
  width: 100%;
  margin: 0;
  color: #acb6c5;
  font-family: var(--display);
  font-size: clamp(100px, 14.8vw, 285px);
  font-weight: 500;
  line-height: 0.73;
  letter-spacing: -0.045em;
  text-align: center;
  transform: translateX(-52.5%) scaleX(1.15) scaleY(1.02);
  user-select: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1100ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-script {
  position: absolute;
  z-index: 2;
  top: 30%;
  left: 3.5vw;
  width: min(330px, 21vw);
  margin: 0;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 38px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  transform: none;
}

.hero-art {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  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;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  filter: saturate(0.82) contrast(1.03);
}

.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: 72px clamp(32px, 5vw, 80px) 56px;
  padding-top: 170px !important;
  padding-bottom:50px !important;
  color: var(--primary);
  background-color: var(--secondary);
  background-image: url("assets/Soft Neutral backgound.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.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: 0;
  box-shadow: none;
}

.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(--sans);
  font-size: clamp(44px, 4vw, 60px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.residence-gallery {
  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: 32px;
  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: 42px;
  height: 42px;
  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(20px, 3vh, 48px) clamp(24px, 4vw, 72px);
  padding-top: 170px !important;
  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: calc(100% - 44px);
  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(--sans);
  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(--sans);
  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: clamp(26px, 5.5vw, 30px);
}

.about-showcase {
  --about-pad-x: clamp(24px, 5vw, 80px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: clamp(56px, 6vw, 96px) var(--about-pad-x);
  padding-top: 170px !important;
  padding-bottom: 30px !important;
  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 {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.about-img:hover img {
  transform: scale(1.05);
}

.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(--sans);
  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(20px, 2.5vw, 40px) clamp(24px, 5vw, 96px) clamp(26px, 3vw, 40px);
  padding-top: 170px !important;
  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;
}

.footer-wordmark {
  margin: 0;
  font-family: var(--sans);
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--secondary-soft);
  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: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--secondary-soft);
  cursor: pointer;
  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);
}

.is-ready .hero-art {
  opacity: 1;
  transform: none;
  transition-delay: 100ms;
}

.is-ready .hero-word {
  opacity: 1;
  transition-delay: 220ms;
}

.is-ready [data-reveal="intro"] {
  transition-delay: 300ms;
}

.is-ready [data-reveal="script"] {
  transition-delay: 500ms;
  transform: rotate(-7deg);
}

.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) {
  .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;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 12vh 8vw;
    background: rgba(239, 233, 221, 0.98);
    font-family: var(--display);
    font-size: clamp(36px, 7vw, 68px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 240ms ease, transform 240ms ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-intro {
    width: 28vw;
  }

  .hero-word {
    top: 24%;
  }

  .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 (max-width: 700px) {
  .hero {
    min-height: 800px;
  }

  .site-header {
    width: calc(100% - 48px);
    min-height: 82px;
  }

  .brand {
    width: 125px;
    height: 48px;
  }

  .brand img {
    width: 143px;
  }

  .hero-rule {
    top: 81px;
    right: 20px;
    left: 20px;
  }

  .hero-intro {
    top: 112px;
    left: 20px;
    width: min(78vw, 320px);
  }

  .eyebrow {
    margin-bottom: 13px;
  }

  .intro-copy {
    font-size: 18px;
  }

  .hero-word {
    top: 35%;
    left: 49%;
    font-size: 23vw;
    letter-spacing: -0.08em;
    transform: translateX(-50%) scaleY(1.05);
  }

  .hero-script {
    z-index: 8;
    top: 56%;
    left: 20px;
    width: min(72vw, 280px);
    color: var(--secondary-soft);
    font-size: 30px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.45);
  }

  .hero-art {
    inset: 150px 0 0;
    width: 100%;
    height: auto;
    transform: none;
  }

  .hero-art img {
    object-position: 80% 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;
  }

  .residence-gallery {
    grid-template-columns: 58px minmax(0, 230px) 58px;
    justify-content: center;
    gap: 4px;
  }

  .residence-oval {
    width: min(100%, 230px);
  }

  .residence-control {
    min-width: 58px;
    min-height: 32px;
    padding: 7px 4px;
    font-size: 6px;
  }

  .residence-control span {
    white-space: nowrap;
  }

  .residence-thumbnail {
    width: 43px;
    height: 43px;
  }

  .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;
  }

}

@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;
  }
}
