:root {
  --text-primary: #f8f1e8;
  --text-soft: rgba(248, 241, 232, 0.86);
  --line: rgba(248, 241, 232, 0.72);
  --overlay: rgba(26, 16, 10, 0.42);
  --overlay-active: rgba(26, 16, 10, 0.24);
  --ease: cubic-bezier(0.87, 0, 0.13, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #120d09;
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.is-ready {
  opacity: 1;
}

.stacked-sections {
  display: block;
}

.hero-banner,
.story-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-banner::after,
.story-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background: linear-gradient(180deg, rgba(18, 12, 8, 0) 0%, rgba(18, 12, 8, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.mission-section {
  background: #f4ede3;
  color: #403831;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.mission-section__inner {
  position: relative;
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: clamp(84px, 14vw, 160px) 0;
  text-align: center;
}

.mission-section__title {
  margin: 0;
  font-family: "EB Garamond", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: 0.04em;
}

.mission-section__text {
  max-width: 470px;
  margin: 34px auto 0;
  color: rgba(64, 56, 49, 0.8);
  font-family: "EB Garamond", serif;
  font-size: 15px;
  line-height: 1.8;
}

.hero-banner__image,
.hero-banner__overlay,
.story-section__image,
.story-section__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-banner__slides,
.hero-banner__slide {
  position: absolute;
  inset: 0;
}

.hero-banner__slide {
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-banner__slide.is-active {
  opacity: 1;
}

.hero-banner__image,
.story-section__image {
  object-fit: cover;
  transform: translate3d(0, var(--parallax-offset, 0px), 0) scale(1);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-banner__overlay {
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.18) 0%, rgba(18, 12, 8, 0.34) 100%),
    linear-gradient(90deg, rgba(18, 12, 8, 0.28) 0%, rgba(18, 12, 8, 0.08) 44%, rgba(18, 12, 8, 0.24) 100%);
}

.story-section__overlay {
  background:
    linear-gradient(180deg, rgba(16, 10, 6, 0.08) 0%, var(--overlay) 100%),
    linear-gradient(90deg, rgba(16, 10, 6, 0.22) 0%, rgba(16, 10, 6, 0.14) 44%, rgba(16, 10, 6, 0.34) 100%);
  transition: background 0.7s var(--ease);
}

.hero-banner__content,
.story-section__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 48px;
  text-align: center;
}

.hero-banner__content {
  gap: 22px;
}

.hero-banner__content::before,
.mission-section__inner::before,
.site-footer__inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(248, 241, 232, 0) 0%, rgba(248, 241, 232, 0.52) 100%);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.1s ease 0.35s, transform 1.1s ease 0.35s;
}

.mission-section__inner::before,
.site-footer__inner::before {
  top: 12px;
  background: linear-gradient(180deg, rgba(64, 56, 49, 0) 0%, rgba(64, 56, 49, 0.28) 100%);
}

.hero-banner__content::before {
  display: none;
}

.site-footer__inner::before {
  display: none;
}

body.is-ready .hero-banner__content::before,
body.is-ready .mission-section__inner::before,
body.is-ready .site-footer__inner::before {
  opacity: 1;
  transform: translateX(-50%) translateY(12px);
}

.hero-banner__title {
  margin: 0;
  color: var(--text-primary);
  font-family: "EB Garamond", serif;
  font-size: clamp(1.7rem, 3.5vw, 3.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-banner__text {
  max-width: none;
  margin: 0;
  color: rgba(248, 241, 232, 0.88);
  font-family: "Manrope", sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Display headings use the lighter EB Garamond face. */
:is(
  .mission-section__title,
  .hero-banner__title,
  .story-section__title,
  .site-footer__mark-text,
  .detail-layout__eyebrow,
  .detail-layout__title,
  .house-detail-nav__brand,
  .house-detail-hero__title,
  .enquiry-intro__title
) {
  font-weight: 400;
}

/* Keep the two hero statements together while preserving the title spacing. */
.hero-banner__text + .hero-banner__text {
  margin-top: -22px;
}

.hero-banner__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  font-family: "EB Garamond", serif;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.82;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-banner__button--prev { left: 24px; }
.hero-banner__button--next { right: 24px; }

.hero-banner__button:hover,
.hero-banner__button:focus-visible { opacity: 1; }
.hero-banner__button--prev:hover { transform: translate(-2px, -50%); }
.hero-banner__button--next:hover { transform: translate(2px, -50%); }

.hero-banner__dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 30px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.hero-banner__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-banner__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.story-section__title-wrap,
.story-section__divider,
.story-section__text,
.story-section__link {
  opacity: 0.18;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.story-section__title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.story-section__eyebrow {
  margin: 0;
  font-family: "EB Garamond", serif;
  font-size: clamp(2.4rem, 4.2vw, 3.9rem);
  font-style: italic;
  line-height: 0.84;
}

.story-section__title {
  margin: 0;
  font-family: "EB Garamond", serif;
  font-size: clamp(2.7rem, 4.8vw, 4.5rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.story-section__divider {
  width: 1px;
  height: clamp(120px, 18vh, 180px);
  margin: 22px 0 26px;
  background: var(--line);
}

.story-section__text {
  max-width: 408px;
  margin: 0;
  color: var(--text-soft);
  font-family: "EB Garamond", serif;
  font-size: clamp(1.02rem, 1.62vw, 1.8rem);
  line-height: 1.08;
}

.story-section__link {
  margin-top: 48px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-primary);
  font-size: clamp(0.6rem, 0.84vw, 0.78rem);
  text-decoration: none;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.story-section__link:hover {
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.story-section.is-active .story-section__overlay {
  background:
    linear-gradient(180deg, rgba(16, 10, 6, 0.05) 0%, var(--overlay-active) 100%),
    linear-gradient(90deg, rgba(16, 10, 6, 0.18) 0%, rgba(16, 10, 6, 0.09) 44%, rgba(16, 10, 6, 0.26) 100%);
}

.story-section.is-active .story-section__title-wrap,
.story-section.is-active .story-section__divider,
.story-section.is-active .story-section__text,
.story-section.is-active .story-section__link {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.site-footer {
  background: #f5efe7;
  color: #403831;
}

.site-footer__inner {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 0 160px;
  text-align: center;
  position: relative;
}

.site-footer__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.site-footer__mark-text {
  font-family: "EB Garamond", serif;
  font-size: clamp(4rem, 9vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  text-transform: none;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  bottom: 48px;
  gap: 8px;
}

.site-footer__title {
  display: none;
}

.site-footer__link {
  color: #403831;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

a[href^="mailto:"].site-footer__link {
  text-transform: lowercase;
}

.site-footer__social {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  justify-content: center;
}

.detail-body {
  margin: 0;
  background: #f4ede3;
  color: #403831;
  font-family: "Manrope", sans-serif;
  /* Detail pages are generated on the client. Never keep them hidden behind
     the global page fade or a full-screen overlay, since that blocks scrolling
     while the gallery images are still being decoded. */
  opacity: 1;
  transition: none;
}

.detail-page {
  min-height: 100vh;
  background: #f4ede3;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(340px, 50%);
  min-height: 100vh;
}

.detail-layout__media {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.detail-layout__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-layout__content {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  padding: 56px clamp(28px, 3.2vw, 48px) 52px;
  background: #f4ede3;
}

.detail-layout__header {
  align-self: start;
  justify-self: start;
}

.detail-layout__eyebrow {
  margin: 0 0 14px;
  font-family: "EB Garamond", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
}

.detail-layout__title {
  margin: 0 0 28px;
  font-family: "EB Garamond", serif;
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: none;
}

.detail-layout__copy {
  align-self: end;
  justify-self: end;
  width: min(100%, 360px);
  margin-top: 40px;
}

.detail-layout__text {
  max-width: none;
  margin: 0 0 18px;
  color: rgba(64, 56, 49, 0.86);
  font-family: "EB Garamond", serif;
  font-size: 15px;
  line-height: 1.7;
}

.detail-layout__cta {
  display: inline-block;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(64, 56, 49, 0.7);
  color: #1a120d;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(0.68rem, 0.84vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

/* House detail gallery */
.house-detail-page {
  background: #f5efe7;
  color: #292522;
}

.detail-page-loader {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: #f5efe7;
  color: #292522;
  opacity: 1;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.75s;
}

.detail-page-loader span {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  animation: detail-loader-pulse 1.1s ease-in-out infinite alternate;
}

body.is-ready .detail-page-loader { opacity: 0; visibility: hidden; }

@keyframes detail-loader-pulse { to { opacity: 0.38; transform: translateY(5px); } }

[data-detail-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-detail-reveal].is-visible { opacity: 1; transform: translateY(0); }

.house-detail-hero__header[data-detail-reveal] { transition-delay: 0.16s; }
.house-gallery[data-detail-reveal] { transition-delay: 0.28s; }

.house-detail-nav {
  width: min(100% - 48px, 1420px);
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.house-detail-nav__brand {
  color: #292522;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 1.8vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.house-detail-nav__brand:hover { opacity: 0.68; }

.house-detail-nav .site-controls {
  position: static;
  flex: 0 0 auto;
}

.house-detail-hero__inner,
.house-detail-copy__inner {
  width: min(100% - 48px, 1420px);
  margin: 0 auto;
}

.house-detail-hero {
  padding: 48px 0 34px;
}

.house-detail-hero__header {
  max-width: 950px;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 30px;
  text-align: center;
}

.house-detail-hero__eyebrow,
.house-detail-copy__label {
  margin: 0 0 8px;
  color: rgba(41, 37, 34, 0.62);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.house-detail-hero__title {
  max-width: 950px;
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.48vw, 2.52rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.house-detail-hero__title em {
  font-style: italic;
  font-weight: 400;
}

.house-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(180px, 284px));
  gap: 10px;
  overflow: hidden;
  border-radius: 0;
}

.house-gallery__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ebe5dd;
}

.house-gallery__item--1 { grid-row: 1 / span 2; }

.house-gallery__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.house-gallery__item:hover .house-gallery__image { transform: scale(1.025); }

.house-gallery__all {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #292522;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.house-gallery__all:hover { background: #f5f2ee; }

.mobile-photo-carousel,
.mobile-photo-gallery { display: none; }

.mobile-photo-gallery {
  position: fixed;
  z-index: 25;
  inset: 0;
  overflow-y: auto;
  background: #f5efe7;
}

.mobile-photo-gallery.is-open { display: block; }

.mobile-photo-gallery__header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #f5efe7;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.mobile-photo-gallery__header button {
  width: 30px;
  height: 30px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: #292522;
}

.mobile-photo-gallery__header svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.3; }

.mobile-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 0 5px 24px; }
.mobile-photo-grid__item { min-height: 220px; padding: 0; border: 0; background: #ded7ce; }
.mobile-photo-grid__item:nth-child(3n + 1) { grid-column: 1 / -1; min-height: 310px; }
.mobile-photo-grid__item img { width: 100%; height: 100%; display: block; object-fit: cover; }

.house-detail-copy {
  padding: 72px 0 112px;
  background: #f5efe7;
}

.house-detail-copy__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 10vw, 170px);
  align-items: start;
}

.house-detail-copy__label,
.house-detail-enquiry__label {
  margin: 0 0 8px;
  color: #292522;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-detail-copy__text { max-width: 540px; }

.house-detail-copy__text p {
  margin: 0 0 20px;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.48;
}

.house-detail-copy__text ul {
  margin: 0;
  padding-left: 1.15em;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.48;
}

.house-detail-copy__text li::marker { font-size: 0.72em; }

.house-detail-copy__text h3 {
  margin: 30px 0 8px;
  color: #292522;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.house-detail-enquiry {
  display: grid;
  gap: 20px;
  padding: 2px 0 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.house-detail-enquiry__label {
  margin-bottom: 8px;
}

.house-detail-enquiry label {
  display: grid;
  gap: 8px;
  color: rgba(41, 37, 34, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.house-detail-enquiry input,
.house-detail-enquiry select,
.house-detail-enquiry textarea {
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(41, 37, 34, 0.58);
  border-radius: 0;
  background: transparent;
  color: #292522;
  font: inherit;
  outline: none;
}

.house-detail-enquiry select { appearance: none; }

.house-detail-enquiry textarea {
  min-height: 72px;
  resize: vertical;
}

.house-detail-enquiry input:focus,
.house-detail-enquiry select:focus,
.house-detail-enquiry textarea:focus { border-bottom-color: #292522; }

.house-detail-enquiry__dates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.house-detail-enquiry button {
  justify-self: start;
  padding: 11px 22px;
  border: 1px solid #292522;
  border-radius: 0;
  background: transparent;
  color: #292522;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.house-detail-enquiry button:hover { background: #292522; color: #f5efe7; }

.form-honeypot {
  position: fixed;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  margin: 0;
  color: #292522;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}

.house-detail-copy__cta {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  color: #292522;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.house-location {
  padding: 110px 0;
  background: #f5efe7;
}

.house-location__inner {
  width: min(100% - 48px, 1420px);
  margin: 0 auto;
}

.house-location__heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(300px, 1fr);
  gap: 46px;
  margin-bottom: 42px;
}

.house-location__eyebrow {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.house-location__heading > p:last-child {
  grid-column: 2;
  margin: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

.house-location__map {
  height: min(62vw, 570px);
  min-height: 380px;
  overflow: hidden;
}

.house-location__map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: saturate(0.72) sepia(0.08);
}

.photo-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  background: rgba(17, 15, 13, 0.96);
}

.photo-modal.is-open { display: block; }

.has-photo-modal { overflow: hidden; }

.photo-modal__viewport {
  position: absolute;
  inset: 42px 92px 68px;
}

.photo-modal__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo-modal__image.is-active { opacity: 1; }

.photo-modal__close,
.photo-modal__nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.photo-modal__close {
  top: 18px;
  right: 24px;
  width: 34px;
  height: 34px;
  padding: 4px;
}

.photo-modal__nav {
  top: 50%;
  width: 58px;
  padding: 16px 10px;
  transform: translateY(-50%);
}

.photo-modal__close svg,
.photo-modal__nav svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.photo-modal__nav--prev { left: 20px; }
.photo-modal__nav--next { right: 20px; }

.photo-modal__count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  transform: translateX(-50%);
}

.detail-layout__cta:visited {
  color: #1a120d;
}

.detail-layout__cta:hover {
  transform: translateY(-2px);
  color: #000000;
  border-color: #000000;
}

.detail-slider__viewport,
.detail-slider__track {
  width: 100%;
  height: 100%;
}

.detail-slider__track {
  position: relative;
}

.detail-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.detail-slider__slide.is-active {
  opacity: 1;
}

.detail-layout__media,
.detail-layout__content {
  opacity: 0;
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-layout__media {
  transform: translate3d(-24px, 0, 0);
}

.detail-layout__content {
  transform: translate3d(24px, 0, 0);
}

body.is-ready .detail-layout__media,
body.is-ready .detail-layout__content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.detail-slider__button {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #ffffff;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: "EB Garamond", serif;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
  opacity: 0.92;
}

.detail-slider__button--prev {
  left: 18px;
}

.detail-slider__button--next {
  right: 18px;
}

.detail-slider__button:hover {
  opacity: 1;
}

.detail-slider__button--prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.detail-slider__button--next:hover {
  transform: translateY(-50%) translateX(2px);
}

.detail-slider__dots {
  display: none;
}

.detail-slider__dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(244, 237, 227, 0.9);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.detail-slider__dot.is-active {
  background: rgba(244, 237, 227, 0.95);
}

.enquiry-body {
  background: #f4ede3;
}

.enquiry-page {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 72px) 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.45), transparent 32%),
    linear-gradient(180deg, #f4ede3 0%, #f0e7dc 100%);
  color: #403831;
}

.enquiry-shell {
  width: min(100%, 760px);
  min-height: calc(100vh - clamp(64px, 12vw, 144px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.enquiry-form__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(64, 56, 49, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.enquiry-form__back:hover {
  color: #403831;
  transform: translateX(-2px);
}

.enquiry-intro {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.enquiry-intro__eyebrow {
  margin: 0;
  color: rgba(64, 56, 49, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.enquiry-intro__title {
  margin: 0;
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  font-family: "EB Garamond", serif;
  font-weight: 500;
  line-height: 0.92;
}

.enquiry-intro__text {
  margin: 0;
  max-width: 520px;
  color: rgba(64, 56, 49, 0.8);
  font-family: "EB Garamond", serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

.enquiry-form {
  width: 100%;
  display: grid;
  gap: 28px;
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(64, 56, 49, 0.12);
  background: rgba(252, 248, 242, 0.74);
  box-shadow: 0 18px 50px rgba(64, 56, 49, 0.06);
  backdrop-filter: blur(8px);
}

.enquiry-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.enquiry-form__field {
  display: grid;
  gap: 10px;
  text-align: left;
}

.enquiry-form__field--full {
  grid-column: 1 / -1;
}

.enquiry-form__field label {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.enquiry-form__field input,
.enquiry-form__field select,
.enquiry-form__field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(64, 56, 49, 0.22);
  border-radius: 0;
  background: transparent;
  color: #403831;
  font: inherit;
  padding: 0 0 12px;
  appearance: none;
}

.enquiry-form__field select {
  cursor: pointer;
}

.enquiry-form__field textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 2px;
}

.enquiry-form__field input:focus,
.enquiry-form__field select:focus,
.enquiry-form__field textarea:focus {
  outline: none;
  border-bottom-color: #403831;
}

.enquiry-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  justify-self: center;
  width: fit-content;
  padding: 11px 28px;
  border: 1px solid #000000;
  border-radius: 0;
  background: #000000;
  color: #f4ede3;
  font-size: calc(0.84rem - 2px);
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease;
}

.enquiry-form__submit:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
}

body.is-ready .enquiry-shell {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
  .house-detail-hero__inner,
  .house-detail-copy__inner,
  .house-detail-nav,
  .house-location__inner {
    width: min(100% - 32px, 1420px);
  }

  .house-detail-hero { padding: 32px 0 22px; }

  .house-detail-nav {
    padding-top: max(20px, env(safe-area-inset-top));
    text-align: left;
  }

  .house-detail-nav__brand { font-size: 1.55rem; }

  .house-detail-nav .site-controls { gap: 8px; }

  .house-detail-hero__header { margin-bottom: 22px; }

  .house-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 300px repeat(2, 145px);
    gap: 6px;
    border-radius: 0;
  }

  .house-gallery { display: none; }

  .mobile-photo-carousel {
    position: relative;
    display: block;
    height: min(116vw, 700px);
    min-height: 440px;
    overflow: hidden;
    background: #ded7ce;
  }

  .mobile-photo-carousel__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .mobile-photo-carousel__slide.is-active { opacity: 1; }
  .mobile-photo-carousel__slide img { width: 100%; height: 100%; display: block; object-fit: cover; }

  .mobile-photo-carousel__count {
    position: absolute;
    z-index: 1;
    right: 16px;
    bottom: 16px;
    padding: 8px 10px;
    background: rgba(30, 27, 24, 0.76);
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.74rem;
  }

  .house-gallery__item--1 { grid-column: 1 / -1; grid-row: auto; }

  .house-gallery__item--5 { display: none; }

  .house-gallery__all {
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
    font-size: 0.8rem;
  }

  .house-detail-copy { padding: 50px 0 70px; }

  .house-detail-copy__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .house-detail-enquiry { max-width: 520px; }

  .house-detail-copy__text p { font-size: 1.1rem; }

  .house-location { padding: 70px 0; }

  .house-location__heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .house-location__heading > p:last-child { grid-column: auto; }

  .house-location__map { height: 68vw; min-height: 320px; }

  .photo-modal__viewport { inset: 64px 16px 84px; }

  .photo-modal__nav { width: 42px; padding: 8px 5px; }
  .photo-modal__nav--prev { left: 2px; }
  .photo-modal__nav--next { right: 2px; }

  .enquiry-page {
    padding: 20px;
  }

  .enquiry-form__grid {
    grid-template-columns: 1fr;
  }

  .mission-section__inner {
    width: min(100% - 24px, 760px);
    padding: 72px 0;
  }

  .mission-section__title {
    font-size: 28px;
    letter-spacing: 0.03em;
  }

  .mission-section__text {
    font-size: 13px;
    margin-top: 22px;
  }

  .hero-banner__title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    letter-spacing: 0.03em;
  }

  .hero-banner__text {
    max-width: 290px;
    font-size: 0.82rem;
    white-space: normal;
  }

  .hero-banner__button {
    top: auto;
    bottom: 22px;
    width: 44px;
    height: 44px;
    font-size: 2.35rem;
    transform: none;
  }

  .hero-banner__button--prev { left: 14px; }
  .hero-banner__button--next { right: 14px; }
  .hero-banner__button--prev:hover,
  .hero-banner__button--next:hover { transform: none; }

  .hero-banner__dots {
    bottom: 24px;
    gap: 8px;
  }

  .story-section__content {
    padding: 28px 18px 36px;
  }

  .story-section__title {
    font-size: clamp(2.2rem, 9.6vw, 3rem);
  }

  .story-section__eyebrow {
    font-size: clamp(2rem, 8.4vw, 2.76rem);
  }

  .story-section__text {
    max-width: 280px;
    font-size: clamp(0.82rem, 4.2vw, 1.2rem);
    line-height: 1.1;
  }

  .story-section__link {
    margin-top: 36px;
    font-size: 0.68rem;
  }

  .site-footer__inner {
    width: min(100% - 24px, 960px);
    min-height: 75svh;
    padding: 48px 0 126px;
  }

  .site-footer__mark-text { font-size: clamp(3.4rem, 18vw, 5.5rem); }

  .site-footer__social { bottom: 120px; }
  .site-footer__contact { bottom: 42px; }

  .site-footer__social {
    gap: 14px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-layout__media {
    min-height: 52vh;
  }

  .detail-layout__content {
    padding: 32px 20px 40px;
    display: flex;
    flex-direction: column;
  }

  .detail-layout__title {
    margin-bottom: 34px;
    font-size: 1.8rem;
  }

  .detail-layout__eyebrow {
    font-size: 1rem;
  }

  .detail-layout__copy {
    width: 100%;
    margin-top: 0;
  }

  .detail-layout__text {
    max-width: none;
  }

  .detail-layout__cta {
    width: 100%;
  }

  .detail-slider__button {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .detail-slider__button--prev {
    left: 16px;
  }

  .detail-slider__button--next {
    right: 16px;
  }

  .detail-slider__button--prev:hover,
  .detail-slider__button--next:hover {
    transform: none;
  }

  .detail-slider__dots {
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  body {
    opacity: 1;
  }

  [data-reveal],
  [data-detail-reveal],
  .detail-layout__media,
  .detail-layout__content,
  .enquiry-shell {
    opacity: 1;
    transform: none;
  }
}

.site-controls {
  position: fixed;
  z-index: 50;
  top: 24px;
  right: 24px;
  display: inline-flex;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid rgba(26, 18, 13, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 18px rgba(26, 18, 13, 0.12);
  backdrop-filter: blur(8px);
}

.language-switcher__button {
  min-width: 42px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #1a120d;
  font: 600 11px/1 Manrope, sans-serif;
  cursor: pointer;
  border-radius: 0;
}

.language-switcher__button.is-active {
  background: #1a120d;
  color: #fff;
}

.language-switcher__whatsapp {
  display: grid;
  width: 30px;
  place-items: center;
  color: #1a120d;
}

.language-switcher__whatsapp:hover,
.language-switcher__whatsapp:focus-visible {
  color: rgba(26, 18, 13, 0.62);
}

.language-switcher__whatsapp svg {
  width: 18px;
  height: 18px;
}

html[lang="tr"] .enquiry-form__field--house > label,
html[lang="tr"] .house-detail-enquiry__house-label > span,
html[lang="en"] .enquiry-form__field--house > label,
html[lang="en"] .house-detail-enquiry__house-label > span {
  display: none;
}
