body.real-project-page {
  --real-line: rgba(238, 223, 211, 0.16);
  --real-line-strong: rgba(238, 223, 211, 0.25);
  --real-muted: rgba(238, 223, 211, 0.7);
  background: var(--color-forest);
}

body.real-project-page.has-questionnaire-open {
  overflow: hidden;
}

.real-project-main {
  overflow: clip;
}

.real-project-shell {
  width: var(--shell-width);
  margin: 0 auto;
}

.real-project-hero {
  position: relative;
  min-height: clamp(38rem, 50vw, 48rem);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-forest);
}

.real-project-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  overflow: hidden;
  background: var(--color-forest);
}

.real-project-hero__image-frame {
  position: absolute;
  inset: 0 0 0 auto;
  width: auto;
  height: 100%;
  aspect-ratio: 79 / 53;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(
    ellipse 95% 130% at 100% 42%,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.97) 48%,
    rgba(0, 0, 0, 0.88) 55%,
    rgba(0, 0, 0, 0.7) 63%,
    rgba(0, 0, 0, 0.48) 72%,
    rgba(0, 0, 0, 0.26) 82%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0.02) 96%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 95% 130% at 100% 42%,
    #000 0%,
    #000 42%,
    rgba(0, 0, 0, 0.97) 48%,
    rgba(0, 0, 0, 0.88) 55%,
    rgba(0, 0, 0, 0.7) 63%,
    rgba(0, 0, 0, 0.48) 72%,
    rgba(0, 0, 0, 0.26) 82%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0.02) 96%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.real-project-hero__image-feather,
.real-project-hero__image,
.real-project-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.real-project-hero__image-feather {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 80%,
    rgba(0, 0, 0, 0.998) 82%,
    rgba(0, 0, 0, 0.985) 84%,
    rgba(0, 0, 0, 0.95) 87%,
    rgba(0, 0, 0, 0.88) 90%,
    rgba(0, 0, 0, 0.76) 93%,
    rgba(0, 0, 0, 0.6) 95.5%,
    rgba(0, 0, 0, 0.42) 97.2%,
    rgba(0, 0, 0, 0.24) 98.5%,
    rgba(0, 0, 0, 0.1) 99.4%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 80%,
    rgba(0, 0, 0, 0.998) 82%,
    rgba(0, 0, 0, 0.985) 84%,
    rgba(0, 0, 0, 0.95) 87%,
    rgba(0, 0, 0, 0.88) 90%,
    rgba(0, 0, 0, 0.76) 93%,
    rgba(0, 0, 0, 0.6) 95.5%,
    rgba(0, 0, 0, 0.42) 97.2%,
    rgba(0, 0, 0, 0.24) 98.5%,
    rgba(0, 0, 0, 0.1) 99.4%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.real-project-hero__image,
.real-project-hero__shade {
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.99) 64%,
    rgba(0, 0, 0, 0.95) 70%,
    rgba(0, 0, 0, 0.84) 76%,
    rgba(0, 0, 0, 0.65) 82%,
    rgba(0, 0, 0, 0.43) 88%,
    rgba(0, 0, 0, 0.22) 93%,
    rgba(0, 0, 0, 0.07) 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.99) 64%,
    rgba(0, 0, 0, 0.95) 70%,
    rgba(0, 0, 0, 0.84) 76%,
    rgba(0, 0, 0, 0.65) 82%,
    rgba(0, 0, 0, 0.43) 88%,
    rgba(0, 0, 0, 0.22) 93%,
    rgba(0, 0, 0, 0.07) 97%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.real-project-hero__image {
  z-index: 0;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: right center;
  animation: real-project-hero-in 1.45s cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.real-project-hero__shade {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 130% at 100% 42%, transparent 0%, transparent 42%, rgba(7, 11, 15, 0.12) 55%, rgba(7, 11, 15, 0.36) 68%, rgba(7, 11, 15, 0.68) 82%, rgba(7, 11, 15, 0.94) 100%),
    linear-gradient(180deg, rgba(9, 13, 17, 0.3) 0%, rgba(9, 13, 17, 0.07) 22%, transparent 50%);
}

.real-project-hero__content {
  padding: 8.2rem 0 5.3rem;
}

.real-project-home-link {
  width: fit-content;
  margin-bottom: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(238, 223, 211, 0.7);
  font-size: 0.8rem;
  font-weight: 620;
  transition: color 0.25s ease;
}

.real-project-home-link::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
  transform: rotate(180deg);
}

.real-project-home-link:hover,
.real-project-home-link:focus-visible {
  color: var(--color-cream);
  outline: none;
}

.real-project-kicker {
  color: rgba(186, 145, 123, 0.98);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.real-project-hero h1 {
  max-width: 11ch;
  font-family: "Prata", serif;
  font-size: clamp(3.5rem, 6vw, 5.9rem);
  font-weight: 400;
  line-height: 0.98;
}

.real-project-status,
.real-work-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border: 1px solid rgba(186, 145, 123, 0.48);
  border-radius: 999rem;
  color: rgba(248, 232, 219, 0.95);
  background: rgba(15, 19, 24, 0.74);
}

.real-project-status {
  margin-top: 1.05rem;
  padding: 0.45rem 0.72rem;
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.real-project-status::before,
.real-work-card__status::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #78bc8e;
  box-shadow: 0 0 0 0.22rem rgba(120, 188, 142, 0.12);
}

.real-project-status[data-status="building"]::before,
.real-work-card__status[data-status="building"]::before {
  background: #c88b62;
  box-shadow: 0 0 0 0.22rem rgba(200, 139, 98, 0.14);
}

.real-project-hero__specs {
  max-width: 45rem;
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.real-project-hero__specs > div {
  min-width: 0;
  min-height: 3.65rem;
  padding: 0.25rem 0.9rem 0.25rem 0;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.62rem;
}

.real-project-hero__specs > div + div {
  padding-left: 0.9rem;
  border-left: 1px solid rgba(238, 223, 211, 0.16);
}

.real-project-spec__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  color: var(--color-tan);
  background: currentColor;
}

.real-project-spec__icon--ruler {
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/ruler.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/ruler.svg") center / contain no-repeat;
}

.real-project-spec__icon--building {
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/building-2.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/building-2.svg") center / contain no-repeat;
}

.real-project-spec__icon--bed {
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/bed-double.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/bed-double.svg") center / contain no-repeat;
}

.real-project-spec__icon--calendar {
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/calendar-clock.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/calendar-clock.svg") center / contain no-repeat;
}

.real-project-spec__copy {
  min-width: 0;
  display: grid;
}

.real-project-spec__copy > span {
  order: 2;
  color: rgba(238, 223, 211, 0.58);
  font-size: 0.64rem;
  line-height: 1.35;
}

.real-project-spec__copy > strong {
  order: 1;
  color: var(--color-cream);
  font-size: 0.92rem;
  font-weight: 650;
}

.real-project-hero__summary {
  max-width: 34rem;
  margin-top: 1.45rem;
  color: rgba(238, 223, 211, 0.72);
  font-size: 0.84rem;
  line-height: 1.65;
}

.real-project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.real-project-hero__actions {
  margin-top: 1.3rem;
}

.real-project-button {
  min-height: 3.25rem;
  padding: 0.88rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(186, 145, 123, 0.58);
  border-radius: var(--radius-ui);
  color: var(--color-cream);
  background: rgba(13, 17, 22, 0.62);
  font-size: 0.82rem;
  font-weight: 650;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.real-project-button--primary {
  border-color: rgba(186, 145, 123, 0.9);
  background: var(--color-earth);
}

.real-project-button:hover,
.real-project-button:focus-visible {
  transform: translateY(-0.16rem);
  border-color: rgba(238, 223, 211, 0.52);
  outline: none;
}

.real-project-section {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding: clamp(2.4rem, 4vw, 3.8rem) 0 0;
  background: var(--color-forest);
}

.real-project-section--finished {
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.real-project-section[hidden] {
  display: none;
}

.real-project-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 29rem);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.55rem;
}

.real-project-section__head--compact {
  grid-template-columns: 1fr;
}

.real-project-section--finished .real-project-section__head--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.real-project-section__head h2 {
  font-family: "Prata", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  font-weight: 400;
  line-height: 1.05;
}

.real-project-section__head > p {
  color: var(--real-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.real-project-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.72rem;
}

.real-project-stage {
  position: relative;
  min-height: 27rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid transparent;
  box-sizing: border-box;
  border-radius: var(--radius-ui);
  color: var(--color-cream);
  text-align: left;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(25, 31, 38, 0.9), rgba(15, 20, 25, 0.96));
  box-shadow: inset 0 0 0 1px var(--real-line-strong);
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.real-project-stage:hover,
.real-project-stage:focus-visible {
  background: linear-gradient(180deg, rgba(28, 34, 41, 0.94), rgba(16, 21, 26, 0.98));
  box-shadow: inset 0 0 0 1px rgba(238, 223, 211, 0.38);
  outline: none;
}

.real-project-stage__number {
  color: var(--color-tan);
  font-family: "Prata", serif;
  font-size: 2rem;
  line-height: 1;
}

.real-project-stage__title {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  font-weight: 680;
  letter-spacing: 0.035em;
  line-height: 1.35;
  text-transform: uppercase;
}

.real-project-stage__description {
  min-height: 3.6em;
  margin-top: 0.55rem;
  color: var(--real-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.real-project-stage img {
  width: calc(100% + 1.4rem);
  max-width: none;
  height: 12.5rem;
  margin: auto -0.7rem 0;
  object-fit: contain;
  filter: drop-shadow(0 1.1rem 1.1rem rgba(0, 0, 0, 0.32));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-project-stage--foundation img {
  position: relative;
  top: 1.6rem;
}

.real-project-stage:hover img,
.real-project-stage:focus-visible img {
  transform: scale(1.035);
}

.real-project-stage__footer {
  margin-top: auto;
  padding-top: 0.9rem;
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid rgba(238, 223, 211, 0.12);
  font-size: 0.72rem;
}

.real-project-stage__footer span {
  color: rgba(238, 223, 211, 0.56);
}

.real-project-stage__footer strong {
  color: var(--color-tan);
  font-size: 0.76rem;
}

.real-project-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 3200;
  max-width: calc(100vw - 2rem);
  padding: 0.82rem 1.08rem;
  border: 1px solid rgba(238, 223, 211, 0.16);
  border-radius: var(--radius-ui);
  color: var(--color-cream);
  background: rgba(35, 40, 46, 0.98);
  box-shadow: 0 1rem 3rem rgba(4, 7, 10, 0.38);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.7rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.real-project-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.real-project-finished {
  width: 100%;
  padding-bottom: 0.35rem;
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.real-project-finished::-webkit-scrollbar {
  display: none;
}

.real-project-finished-nav,
.recent-works-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.real-project-finished-nav button,
.recent-works-nav button {
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 223, 211, 0.16);
  border-radius: 50%;
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    opacity 0.22s ease;
}

.real-project-finished-nav button span,
.recent-works-nav button span {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  background: currentColor;
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
}

.real-project-finished-nav button:first-child span,
.recent-works-nav button:first-child span {
  transform: rotate(180deg);
}

.real-project-finished-nav button:hover:not(:disabled),
.real-project-finished-nav button:focus-visible,
.recent-works-nav button:hover:not(:disabled),
.recent-works-nav button:focus-visible {
  border-color: rgba(186, 145, 123, 0.72);
  background: rgba(186, 145, 123, 0.12);
  transform: translateY(-0.08rem);
  outline: none;
}

.real-project-finished-nav button:disabled,
.recent-works-nav button:disabled {
  opacity: 0.28;
  cursor: default;
}

.real-project-finished button {
  position: relative;
  flex: 0 0 clamp(16rem, 27vw, 22rem);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--real-line);
  border-radius: var(--radius-ui);
  background: #0d1116;
  scroll-snap-align: start;
}

.real-project-finished img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-project-finished button:hover img,
.real-project-finished button:focus-visible img {
  transform: scale(1.035);
}

.real-project-finished button:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: 0.18rem;
}

.real-project-missing {
  width: var(--shell-width);
  min-height: 70svh;
  margin: 0 auto;
  padding-top: 10rem;
}

/* Home and catalog-house cards share one visual language. */
.recent-works-section {
  padding-top: 1.5rem;
}

.recent-works-shell {
  width: var(--shell-width);
}

.section-shell--recent-works {
  padding: clamp(1.35rem, 2.1vw, 1.85rem);
  border-color: rgba(238, 223, 211, 0.14);
  background: rgba(15, 20, 25, 0.94);
  box-shadow: 0 0.9rem 2.2rem rgba(var(--color-graphite-shadow-rgb), 0.18);
}

.recent-works-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid rgba(238, 223, 211, 0.1);
}

.home-page .project-strip__title.section-title,
.home-page main .recent-works-head h2,
.house-page main .house-real-examples__head h2 {
  font-size: clamp(1.35rem, 1.75vw, 1.65rem);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.recent-works-head p,
.house-real-examples__head p {
  margin-top: 0.62rem;
  color: rgba(238, 223, 211, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
}

.house-real-examples__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.recent-works-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.7rem) / 3);
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.05rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recent-works-grid::-webkit-scrollbar {
  display: none;
}

.recent-works-grid .real-work-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.recent-works-grid:focus-visible {
  outline: 1px solid rgba(186, 145, 123, 0.58);
  outline-offset: 0.3rem;
}

.real-work-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(238, 223, 211, 0.15);
  border-radius: var(--radius-ui);
  background: rgba(var(--color-surface-raised-rgb), 0.55);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.real-work-card:hover,
.real-work-card:focus-visible {
  transform: translateY(-0.35rem);
  border-color: rgba(186, 145, 123, 0.48);
  outline: none;
}

.real-work-card__visual {
  position: relative;
  aspect-ratio: 1.48 / 1;
  overflow: hidden;
  background: #0b1015;
}

.real-work-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 9, 12, 0.48), transparent 50%);
}

.real-work-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.real-work-card:hover img,
.real-work-card:focus-visible img {
  transform: scale(1.035);
}

.real-work-card__status {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.42rem 0.68rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  backdrop-filter: blur(0.7rem);
  -webkit-backdrop-filter: blur(0.7rem);
}

.real-work-card__body {
  min-width: 0;
  padding: 1rem;
}

.real-work-card__body h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

.real-work-card__meta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  color: rgba(238, 223, 211, 0.68);
  font-size: 0.74rem;
  line-height: 1.45;
}

.real-work-card__link {
  margin-top: 0.9rem;
  display: inline-block;
  color: var(--color-tan);
  font-size: 0.76rem;
  font-weight: 650;
}

.house-real-examples-section {
  padding: 1.5rem 0 0;
}

.house-real-examples {
  padding: 1rem;
  border: 1px solid rgba(238, 223, 211, 0.2);
  border-radius: var(--radius-ui);
  background: rgba(20, 25, 31, 0.86);
}

.house-real-examples__head {
  margin-bottom: 1rem;
}

.house-real-examples__head h2 {
  font-size: var(--house-section-title-size, clamp(1.55rem, 2.5vw, 2.1rem));
  text-transform: none;
}

/* Dedicated construction-stage gallery. */
.real-stage-main {
  min-height: 75svh;
  background: var(--color-forest);
}

.real-stage-section {
  padding: clamp(7.5rem, 10vw, 9.2rem) 0 clamp(4rem, 7vw, 6rem);
}

.real-stage-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(238, 223, 211, 0.7);
  font-size: 0.8rem;
  font-weight: 620;
  transition: color 0.25s ease;
}

.real-stage-back::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
  transform: rotate(180deg);
}

.real-stage-back:hover,
.real-stage-back:focus-visible {
  color: var(--color-tan);
  outline: none;
}

.real-stage-heading {
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 1.45rem;
}

.real-stage-heading h1 {
  font-family: "Prata", serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
}

.real-stage-viewer {
  padding: clamp(0.65rem, 1.2vw, 0.9rem);
  border: 1px solid var(--real-line);
  border-radius: var(--radius-ui);
  background: rgba(12, 17, 22, 0.86);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.22);
}

.real-stage-viewer__main {
  position: relative;
  min-height: clamp(27rem, 66svh, 52rem);
  overflow: hidden;
  border-radius: calc(var(--radius-ui) - 0.15rem);
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 64, 69, 0.28), transparent 56%),
    #080c10;
  touch-action: pan-y pinch-zoom;
}

.real-stage-image-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.real-stage-image-button:focus-visible {
  outline: 2px solid var(--color-tan);
  outline-offset: -0.3rem;
}

.real-stage-image-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.2s ease;
}

.real-stage-arrow,
.real-stage-fullscreen,
.real-stage-counter {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(238, 223, 211, 0.22);
  color: var(--color-cream);
  background: rgba(10, 14, 18, 0.78);
  box-shadow: 0 0.7rem 1.6rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
}

.real-stage-arrow {
  top: 50%;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.real-stage-arrow--previous {
  left: 1rem;
}

.real-stage-arrow--next {
  right: 1rem;
}

.real-stage-arrow span {
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  -webkit-mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../vendor/lucide/1.33.0/icons/arrow-right.svg") center / contain no-repeat;
}

.real-stage-arrow--previous span {
  transform: rotate(180deg);
}

.real-stage-arrow:hover,
.real-stage-arrow:focus-visible {
  border-color: rgba(186, 145, 123, 0.76);
  background: rgba(145, 106, 87, 0.88);
  outline: none;
}

.real-stage-counter,
.real-stage-fullscreen {
  bottom: 1rem;
  min-height: 2.4rem;
  padding: 0.55rem 0.78rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.real-stage-counter {
  left: 1rem;
}

.real-stage-fullscreen {
  right: 1rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.real-stage-fullscreen:hover,
.real-stage-fullscreen:focus-visible {
  border-color: rgba(186, 145, 123, 0.76);
  background: rgba(145, 106, 87, 0.88);
  outline: none;
}

.real-stage-thumbnails {
  padding-top: 0.75rem;
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(186, 145, 123, 0.45) transparent;
}

.real-stage-thumbnail {
  flex: 0 0 8.8rem;
  aspect-ratio: 1.55 / 1;
  padding: 0.18rem;
  overflow: hidden;
  border: 1px solid rgba(238, 223, 211, 0.15);
  border-radius: calc(var(--radius-ui) - 0.12rem);
  background: rgba(255, 255, 255, 0.025);
  opacity: 0.62;
  scroll-snap-align: center;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.real-stage-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-ui) - 0.25rem);
  object-fit: cover;
}

.real-stage-thumbnail:hover,
.real-stage-thumbnail:focus-visible,
.real-stage-thumbnail.is-active {
  border-color: rgba(186, 145, 123, 0.86);
  opacity: 1;
  outline: none;
}

.real-stage-thumbnail.is-active {
  transform: translateY(-0.12rem);
}

/* The object galleries use the same native-feeling mobile PhotoSwipe treatment as house pages. */
.real-project-page .pswp {
  --pswp-bg: #05070a;
  --pswp-placeholder-bg: #101419;
  --pswp-root-z-index: 120;
  --pswp-icon-color: rgba(245, 239, 234, 0.96);
  --pswp-icon-color-secondary: rgba(5, 7, 10, 0.74);
  --pswp-icon-stroke-color: rgba(5, 7, 10, 0.55);
  --pswp-icon-stroke-width: 1.4px;
}

.real-project-page .pswp__bg {
  background: #05070a;
}

.real-project-page .pswp__top-bar {
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.real-project-page .pswp__button {
  width: 3.1rem;
  height: 3.1rem;
  margin: 0.72rem;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 223, 211, 0.14);
  border-radius: 999px;
  line-height: 0;
  background-color: rgba(20, 25, 31, 0.7);
  backdrop-filter: blur(0.9rem);
  -webkit-backdrop-filter: blur(0.9rem);
  opacity: 0.92;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.real-project-page .pswp__button > .pswp__icn {
  position: static;
  inset: auto;
  display: block;
  margin: 0;
}

.real-project-page .pswp__button:hover,
.real-project-page .pswp__button:focus-visible {
  background-color: rgba(34, 40, 48, 0.9);
  opacity: 1;
  transform: scale(1.025);
  outline: none;
}

.real-project-page .pswp__button--arrow {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 clamp(0.4rem, 1.6vw, 1.2rem);
}

.real-project-page .pswp__button--arrow > .pswp__icn {
  width: 2.85rem;
  height: 2.85rem;
}

.real-project-page .pswp__button--arrow--next > .pswp__icn {
  transform: scale(-1, 1);
}

.real-project-page .pswp__counter {
  margin-top: max(0.72rem, env(safe-area-inset-top, 0px));
  margin-left: max(0.8rem, env(safe-area-inset-left, 0px));
  color: rgba(245, 239, 234, 0.76);
  font-variant-numeric: tabular-nums;
  text-shadow: none;
  opacity: 1;
}

.real-project-page .pswp__img {
  user-select: none;
  -webkit-user-drag: none;
}

@media (hover: none) and (pointer: coarse) {
  .real-project-page .pswp__button:hover {
    background-color: rgba(20, 25, 31, 0.7);
    transform: none;
  }

  .real-project-page .pswp__button--arrow {
    width: 3rem;
    height: 3rem;
    margin: 0 0.35rem;
  }
}

@keyframes real-project-hero-in {
  from { opacity: 0; transform: scale(1.018); }
  to { opacity: 1; transform: scale(1); }
}

@media (min-width: 96rem) {
  .real-project-hero__media {
    inset: 0 auto;
    left: 50%;
    width: min(96rem, 100%);
    transform: translateX(-50%);
  }
}

@media (max-width: 74rem) {
  .real-project-stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .real-project-stage {
    min-height: 27rem;
  }
}

@media (max-width: 60rem) {
  .real-project-hero {
    min-height: 39rem;
  }

  .real-project-hero__content {
    padding: 7rem 0 4.2rem;
  }

  .real-project-hero__image-frame {
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .real-project-hero__image-feather {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .real-project-hero__image {
    max-width: 100%;
    object-fit: cover;
    object-position: 61% 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .real-project-hero__shade {
    -webkit-mask-image: none;
    mask-image: none;
    background:
      linear-gradient(180deg, rgba(7, 11, 15, 0.42) 0%, rgba(7, 11, 15, 0.16) 42%, var(--color-forest) 100%),
      linear-gradient(90deg, rgba(7, 11, 15, 0.96) 0%, rgba(7, 11, 15, 0.78) 48%, rgba(7, 11, 15, 0.18) 100%);
  }

  .real-project-section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .house-real-examples__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-works-grid {
    grid-auto-columns: calc((100% - 0.85rem) / 2);
  }
}

@media (max-width: 42rem) {
  .real-project-shell,
  .recent-works-shell {
    width: min(100% - 2rem, 76.5rem);
  }

  .real-project-hero {
    min-height: 37rem;
  }

  .real-project-hero__image {
    object-position: 61% 50%;
  }

  .real-project-hero__content {
    padding: 6.5rem 0 2.7rem;
  }

  .real-project-hero h1 {
    font-size: clamp(3rem, 15vw, 4.1rem);
  }

  .real-project-hero__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.2rem;
  }

  .real-project-hero__specs > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(238, 223, 211, 0.16);
  }

  .real-project-hero__specs > div:nth-child(4) {
    border-top: 1px solid rgba(238, 223, 211, 0.16);
  }

  .real-project-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
  }

  .real-project-hero__actions .real-project-button {
    min-width: 0;
    min-height: 3.15rem;
    padding: 0.72rem 0.7rem;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .real-project-home-link {
    margin-bottom: 0.85rem;
    font-size: 0.72rem;
  }

  .real-project-hero__summary {
    margin-top: 1rem;
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .real-project-section {
    padding-top: 2rem;
  }

  .real-project-section__head {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .real-project-stages {
    width: calc(100vw - 1rem);
    margin-right: calc(1rem - 50vw);
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 19rem);
    gap: 0.7rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .real-project-stages::-webkit-scrollbar {
    display: none;
  }

  .real-project-stage {
    min-height: 27rem;
    scroll-snap-align: start;
  }

  .house-real-examples__grid {
    grid-template-columns: 1fr;
  }

  .recent-works-grid {
    grid-auto-columns: min(82vw, 19rem);
    gap: 0.7rem;
  }

  .real-project-finished {
    width: 100%;
    gap: 0.55rem;
  }

  .real-project-section--finished .real-project-section__head--compact {
    grid-template-columns: 1fr;
  }

  .real-project-finished-nav,
  .recent-works-nav {
    display: none;
  }

  .real-project-finished button {
    flex-basis: min(78vw, 19rem);
  }

  .recent-works-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .real-work-card__visual {
    aspect-ratio: 1.35 / 1;
  }

  .section-shell--recent-works {
    padding: 1rem;
  }

  .real-stage-section {
    padding-top: 6.8rem;
  }

  .real-stage-heading {
    margin-top: 1.25rem;
  }

  .real-stage-viewer {
    padding: 0.45rem;
  }

  .real-stage-viewer__main {
    min-height: clamp(19rem, 57svh, 34rem);
  }

  .real-stage-arrow {
    width: 2.85rem;
    height: 2.85rem;
  }

  .real-stage-arrow--previous {
    left: 0.55rem;
  }

  .real-stage-arrow--next {
    right: 0.55rem;
  }

  .real-stage-counter,
  .real-stage-fullscreen {
    bottom: 0.55rem;
  }

  .real-stage-counter {
    left: 0.55rem;
  }

  .real-stage-fullscreen {
    right: 0.55rem;
  }

  .real-stage-thumbnail {
    flex-basis: 6.9rem;
  }
}

@media (max-width: 23rem) {
  .real-project-hero {
    min-height: 42rem;
  }

  .real-project-hero__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .real-project-hero__image {
    animation: none;
  }

  .real-project-stage,
  .real-project-stage img,
  .real-project-finished img,
  .real-project-finished-nav button,
  .real-work-card,
  .real-work-card img,
  .real-project-button {
    transition: none;
  }
}
