/* ============================================================
   A Quiet Amsterdam Home — shared styles
   ============================================================ */

:root {
  --bone: #FBFAF8;
  --ivory: #FFFFFF;
  --surface: #F1F6F6;
  --surface-warm: #ECEAE3;
  --ink: #0A0A0A;
  --muted: #6E6E6E;
  --line: #E7DECE;
  --line-soft: #E1D6C4;
  --clay: #1A8E96;
  --clay-dark: #147278;
  --pine: #0A0A0A;
  --ochre: #5BCAD0;
  --max: 1200px;
  --radius: 22px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 22px 60px rgba(10, 10, 10, .13);
  --shadow-soft: 0 20px 55px rgba(10, 10, 10, .08);
}

/* ---------- base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 26px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 10px 16px;
  z-index: 300;
}
.skip:focus { left: 0; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clay);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--clay-dark);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.nav__inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  transition: color .35s var(--ease);
}

.brand .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ivory);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav__links a {
  color: color-mix(in srgb, var(--ivory) 86%, transparent);
  text-decoration: none;
  font-weight: 700;
  font-size: .96rem;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}
.nav__links a:hover { color: var(--ivory); }

.nav__links a[aria-current="page"] {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--ivory);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ivory);
  transition: background .35s var(--ease);
}

/* nav variant: floating on home page */

.nav--floating {
  position: fixed;
  inset: 0 0 auto 0;
  background: var(--clay);
  backdrop-filter: none;
  border-bottom: 1px solid var(--clay-dark);
}

.nav--floating .brand,
.nav--floating .nav__links a {
  color: var(--ivory);
  opacity: .96;
}

.nav--floating .nav__toggle span {
  background: var(--ivory);
}

.nav--floating.scrolled {
  background: var(--clay);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--clay-dark);
}

.nav--floating.scrolled .brand,
.nav--floating.scrolled .nav__links a {
  color: var(--ivory);
  opacity: 1;
}

.nav--floating.scrolled .nav__toggle span {
  background: var(--ivory);
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--clay-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
  }

  .nav__links.open { max-height: 360px; }
  .nav__links li { border-top: 1px solid rgba(255, 255, 255, .12); }

  .nav__links a {
    display: block;
    padding: 18px 26px;
    color: var(--ivory) !important;
    opacity: 1;
  }

  .nav__links a[aria-current="page"] {
    color: var(--ivory) !important;
  }
}

/* ---------- page head ---------- */

.head {
  padding-block: clamp(54px, 8vw, 100px) clamp(24px, 4vw, 44px);
}

.head .eyebrow {
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}

.head h1 {
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  max-width: 920px;
}

.head p {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 62ch;
  margin-top: 20px;
}

/* ---------- generic eyebrow ---------- */

.eyebrow {
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-3px); }

.btn--clay { background: var(--clay); color: var(--ivory); }
.btn--clay:hover { background: var(--clay-dark); }

.btn--outline { border: 2px solid var(--bone); color: var(--bone); }
.btn--outline:hover { background: var(--bone); color: var(--ink); }

.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.button:hover { transform: translateY(-2px); }

.button--primary {
  background: var(--clay);
  color: var(--ivory);
  box-shadow: 0 12px 26px rgba(26, 142, 150, .22);
}
.button--primary:hover { box-shadow: 0 18px 34px rgba(26, 142, 150, .25); }

.button--secondary {
  border: 1px solid color-mix(in srgb, var(--bone) 28%, transparent);
  color: var(--bone);
}
.button--secondary:hover { background: color-mix(in srgb, var(--bone) 8%, transparent); }

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: 34px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  opacity: .86;
  font-size: .86rem;
}

footer .wrap span:last-child {
  font-size: .72rem;
  line-height: 1.35;
  opacity: .58;
  max-width: 48ch;
}

/* ============================================================
   index.html — hero + sections
   ============================================================ */

.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero__image { position: absolute; inset: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .48) 0%, rgba(10, 10, 10, .08) 38%, rgba(10, 10, 10, .76) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--bone);
  padding-block: 120px 64px;
}

.hero__eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ochre);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  color: var(--bone);
}
.hero h1 .line2 { color: var(--ochre); }

.hero__sub {
  max-width: 56ch;
  margin-top: 22px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--bone) !important;
  opacity: .96;
}

.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.intro { padding-block: clamp(70px, 10vw, 120px) clamp(40px, 6vw, 70px); }
.intro h2 { max-width: 20ch; font-size: clamp(2rem, 5.5vw, 4rem); }
.intro h2 .hl { color: var(--pine); }
.intro p { max-width: 58ch; margin-top: 26px; color: var(--muted); font-size: 1.18rem; }

.home-preview { padding-bottom: clamp(70px, 9vw, 115px); }
.home-preview__intro { margin-bottom: 22px; max-width: 760px; }
.home-preview__intro h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 10px; }
.home-preview__intro p { color: var(--muted); max-width: 58ch; }

.home-preview__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.home-preview figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-preview figure:first-child { grid-row: span 2; }
.home-preview figure:nth-child(4) { grid-column: span 2; max-height: 360px; }

.home-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
.home-preview figure:hover img { transform: scale(1.035); }

@media (max-width: 820px) {
  .home-preview__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .home-preview figure:first-child,
  .home-preview figure:nth-child(4) { grid-column: span 2; grid-row: auto; }
  .home-preview img { min-height: 260px; }
}

@media (max-width: 560px) {
  .home-preview__grid { grid-template-columns: 1fr; }
  .home-preview figure:first-child,
  .home-preview figure:nth-child(4) { grid-column: auto; }
}

.stats {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(54px, 7vw, 90px);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat .n {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--ochre);
}

.stat .l {
  margin-top: 10px;
  opacity: .78;
  font-size: .98rem;
}

@media (max-width: 680px) {
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
}

.transport {
  background: var(--pine);
  color: var(--bone);
  padding-block: clamp(64px, 8vw, 110px);
}

.transport__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.transport h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--bone);
}

.transport h2 .y { color: var(--ochre); }

.transport .lede {
  max-width: 40ch;
  margin-top: 18px;
  opacity: .9;
  font-size: 1.12rem;
}

.transit {
  list-style: none;
  display: grid;
  gap: 2px;
}

.transit li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.transit li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }

.transit .num {
  min-width: 1.6em;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--ochre);
  line-height: 1;
}

@media (max-width: 780px) {
  .transport__grid { grid-template-columns: 1fr; gap: 34px; }
}

.hosts { padding-block: clamp(70px, 9vw, 120px); }

.hosts__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.host-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--ochre), var(--clay));
  overflow: hidden;
  box-shadow: var(--shadow);
}
.host-photo img { width: 100%; height: 100%; object-fit: cover; }

.hosts h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.hosts p { max-width: 50ch; margin-top: 18px; color: var(--muted); font-size: 1.12rem; }

@media (max-width: 780px) {
  .hosts__grid { grid-template-columns: 1fr; gap: 34px; }
}

.cta { padding-block: clamp(70px, 9vw, 120px); }

.cta__band {
  border-radius: var(--radius-lg);
  padding: clamp(42px, 5.8vw, 76px);
  background: var(--ink);
  color: var(--bone);
  text-align: center;
}

.cta__band h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--bone);
}

.cta__band p {
  margin-top: 14px;
  opacity: .9;
  font-size: 1.15rem;
  max-width: 52ch;
  margin-inline: auto;
}

.cta__band .btn {
  margin-top: 30px;
  background: var(--clay);
  color: var(--ivory);
}
.cta__band .btn:hover { background: var(--clay-dark); }

/* ============================================================
   apartment.html — gallery
   ============================================================ */

.hero-image {
  height: min(66vh, 690px);
  min-height: 390px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(10, 10, 10, 0.08);
  margin-top: 24px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section { padding: 72px 0 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) 1fr;
  gap: 34px;
  align-items: end;
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.section-number {
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 3.7rem);
  margin-bottom: 12px;
}

.section p {
  color: var(--muted);
  max-width: 620px;
  margin: 0;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  justify-content: center;
}

.gallery-item {
  appearance: none;
  border: 1px solid rgba(10, 10, 10, 0.08);
  padding: 0;
  background: var(--ivory);
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.10);
  min-height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ivory);
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.018); }

.gallery-item.large { grid-column: span 7; min-height: 470px; }
.gallery-item.medium { grid-column: span 5; min-height: 470px; }
.gallery-item.small { grid-column: span 4; min-height: 310px; }
.gallery-item.wide { grid-column: span 8; min-height: 360px; }
.gallery-item.single { grid-column: span 7; min-height: 430px; }
.gallery-item.compact { grid-column: span 6; height: 320px; min-height: 0; }
.gallery-item.service { grid-column: span 4; height: 310px; min-height: 0; }
.gallery-item.service-single { grid-column: span 5; height: 310px; min-height: 0; }
.gallery-item.bathroom-combined { grid-column: span 3; height: 270px; min-height: 0; }
.gallery-item.terrace-balanced { grid-column: span 4; height: 300px; min-height: 0; }

.gallery-item.hero {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 470px;
  display: block;
  align-items: initial;
  justify-content: initial;
}

.gallery-item.hero::after {
  content: none;
  display: none;
}

.gallery-item.mate {
  grid-column: span 4;
  height: 227px;
  min-height: 0;
}

.gallery-item.solo {
  grid-column: span 8;
  min-height: 460px;
}

.comfort {
  margin-top: 86px;
  background: var(--pine);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.comfort .eyebrow { color: var(--ochre); }
.comfort h2 { font-size: clamp(2.2rem, 5vw, 5rem); color: var(--ivory); }

.comfort-intro {
  color: color-mix(in srgb, var(--ivory) 72%, transparent);
  max-width: 560px;
  margin: 18px 0 34px;
  font-size: 1.08rem;
}

.comfort-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.comfort-card {
  border: 1px solid color-mix(in srgb, var(--ivory) 18%, transparent);
  border-radius: var(--radius);
  padding: 22px;
  background: color-mix(in srgb, var(--ivory) 5.5%, transparent);
  min-height: 190px;
}

.comfort-card span {
  color: var(--ochre);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.comfort-card h3 {
  font-size: 1.25rem;
  margin: 22px 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ivory);
}

.comfort-card p {
  color: color-mix(in srgb, var(--ivory) 72%, transparent);
  margin: 0;
  font-size: 0.98rem;
}

.practical {
  margin-top: 40px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: var(--shadow-soft);
}

.practical .eyebrow { color: var(--clay); }
.practical h2 { font-size: clamp(2rem, 4.5vw, 4.2rem); max-width: 720px; }

.practical-intro {
  color: var(--muted);
  max-width: 650px;
  margin: 16px 0 30px;
  font-size: 1.06rem;
}

.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.practical-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: color-mix(in srgb, var(--surface-warm) 70%, transparent);
  min-height: 168px;
}

.practical-card strong {
  display: block;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -0.025em;
  font-size: 1.15rem;
  margin-bottom: 9px;
}

.practical-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* apartment CTA */

.apartment-cta {
  margin-top: 40px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  box-shadow: 0 18px 48px rgba(10, 10, 10, 0.075);
}

.apartment-cta h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); }
.apartment-cta p { color: var(--muted); font-size: 1.1rem; margin: 12px 0 0; }

.apartment-cta .button {
  background: var(--ink);
  color: var(--bone);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(10, 10, 10, 0.18);
  padding: 15px 24px;
}
.apartment-cta .button:hover { background: var(--clay); }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.open { display: flex; }

.lightbox img {
  width: auto;
  max-width: min(1120px, 92vw);
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(10, 10, 10, 0.45);
  background: transparent;
}

.lightbox button {
  position: absolute;
  border: 0;
  background: color-mix(in srgb, var(--ivory) 14%, transparent);
  color: var(--ivory);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox button:hover { background: color-mix(in srgb, var(--ivory) 24%, transparent); }

.lightbox .close { top: 22px; right: 22px; }
.lightbox .prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 22px; top: 50%; transform: translateY(-50%); }

/* apartment responsive before final mobile */

@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small,
  .gallery-item.wide,
  .gallery-item.single,
  .gallery-item.compact,
  .gallery-item.service,
  .gallery-item.service-single,
  .gallery-item.bathroom-combined,
  .gallery-item.terrace-balanced,
  .gallery-item.hero,
  .gallery-item.mate,
  .gallery-item.solo {
    grid-column: span 12;
    grid-row: auto;
    min-height: 0;
    height: 330px;
  }

  .comfort-grid { grid-template-columns: 1fr 1fr; }
  .practical-grid { grid-template-columns: 1fr 1fr; }
  .apartment-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .hero-image { min-height: 300px; height: 52vh; }
  .comfort-grid { grid-template-columns: 1fr; }
  .practical-grid { grid-template-columns: 1fr; }
  .gallery-grid { gap: 12px; }

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small,
  .gallery-item.wide,
  .gallery-item.single,
  .gallery-item.compact,
  .gallery-item.service,
  .gallery-item.service-single,
  .gallery-item.bathroom-combined,
  .gallery-item.terrace-balanced,
  .gallery-item.hero,
  .gallery-item.mate,
  .gallery-item.solo {
    min-height: 0;
    height: 260px;
  }
}

/* ============================================================
   neighbourhood.html
   ============================================================ */

.neighborhood-image,
.neighbourhood-image {
  padding-bottom: clamp(60px, 8vw, 100px);
}

.neighborhood-image figure,
.neighbourhood-image figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  max-height: 560px;
}

.neighborhood-image img,
.neighbourhood-image img {
  width: 100%;
  height: clamp(320px, 52vw, 560px);
  object-fit: cover;
}

.walks {
  padding-block: clamp(70px, 9vw, 120px);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.walks__intro { max-width: 760px; margin-bottom: 34px; }
.walks__intro h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.walks__intro p { color: var(--muted); max-width: 58ch; font-size: 1.12rem; }
.walks__intro .eyebrow { color: var(--clay); }

.walks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.walk {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  align-items: baseline;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bone);
}

.walk__time {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--clay);
}

.walk p { color: var(--ink); font-size: 1.06rem; }

@media (max-width: 760px) {
  .walks__grid { grid-template-columns: 1fr; }
  .walk { grid-template-columns: 1fr; gap: 8px; }
}

.character { padding-block: clamp(70px, 9vw, 120px); }

.character__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.character h2 { font-size: clamp(2rem, 5vw, 3.6rem); }

.character p {
  color: var(--muted);
  font-size: 1.12rem;
  margin-top: 18px;
  max-width: 52ch;
}

.character .eyebrow { color: var(--clay); }

.notes { display: grid; gap: 14px; }

.note {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 70%, var(--ivory));
}

.note h3 { font-size: 1.35rem; margin-bottom: 8px; }
.note p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (max-width: 820px) {
  .character__grid { grid-template-columns: 1fr; gap: 34px; }
}

.cta__band--pine {
  background: var(--pine);
  color: var(--bone);
}

.cta__band--pine h2 { color: var(--bone); }
.cta__band--pine .btn { background: var(--clay); color: var(--ivory); }
.cta__band--pine .btn:hover { background: var(--clay-dark); }

/* ============================================================
   exchange.html & contact.html — two-column sticky layout
   ============================================================ */

.two-col {
  padding-block: clamp(34px, 5vw, 56px) clamp(70px, 8vw, 116px);
}

.two-col__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}

.two-col__lead {
  position: sticky;
  top: 108px;
}

.two-col__lead h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 14px;
}

.two-col__lead p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
}

.info-card {
  margin-top: 30px;
  background: var(--pine);
  color: var(--bone);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 36px);
  box-shadow: 0 18px 48px rgba(10, 10, 10, 0.075);
}

.info-card__kicker {
  display: block;
  opacity: .78;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  margin-bottom: 16px;
  color: var(--bone);
}

.info-card ul {
  list-style: none;
  display: grid;
  gap: 13px;
}

.info-card li {
  position: relative;
  padding-left: 24px;
  color: color-mix(in srgb, var(--bone) 88%, transparent);
}

.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  transform: translateY(-50%);
}

.info-card__note,
.privacy-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--bone) 18%, transparent);
  color: color-mix(in srgb, var(--bone) 88%, transparent) !important;
  font-size: .94rem;
}

.panel--pine p,
.panel--pine .panel__intro p,
.info-card p,
.info-card__note {
  color: color-mix(in srgb, var(--bone) 92%, transparent) !important;
}

.content-stack { display: grid; gap: 24px; }

.panel {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 18px 48px rgba(10, 10, 10, 0.075);
}

.panel__intro { margin-bottom: 24px; }
.panel__intro h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin-bottom: 10px; }
.panel__intro p { color: var(--muted); max-width: 58ch; }

.panel--pine {
  background: var(--pine);
  color: var(--bone);
  border-color: transparent;
}

.panel--pine .panel__intro h2 { color: var(--bone); }
.panel--pine .panel__intro p { color: color-mix(in srgb, var(--bone) 78%, transparent); }

/* exchange steps */

.steps { display: grid; gap: 16px; }

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bone);
}

.step__number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pine);
  color: var(--bone);
  font-weight: 800;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}

.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.included-grid li {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 14px 42px;
  position: relative;
  color: var(--muted);
  min-height: 58px;
  display: flex;
  align-items: center;
}

.included-grid li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clay);
  font-weight: 900;
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.preference {
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.preference h3 { font-size: 1.28rem; margin-bottom: 8px; }
.preference p { color: var(--muted); }

/* contact form */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.form label { font-weight: 700; font-size: .9rem; }
.required { color: var(--clay); font-weight: 800; }

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  background: var(--bone);
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.form input::placeholder,
.form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

.form input:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--clay);
  background: var(--ivory);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--clay) 16%, transparent);
}

.form textarea { min-height: 160px; resize: vertical; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.form button {
  border: 0;
  cursor: pointer;
  background: var(--clay);
  color: var(--ivory);
  font-weight: 800;
  font-size: 1rem;
  padding: 15px 24px;
  border-radius: 999px;
  min-width: 170px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 12px 26px rgba(26, 142, 150, .22);
}

.form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(26, 142, 150, .25);
}

.form .note {
  color: var(--muted);
  font-size: .9rem;
  max-width: 38ch;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* two-col responsive */

@media (max-width: 900px) {
  .two-col__grid { grid-template-columns: 1fr; }
  .two-col__lead { position: static; }
}

@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; }
  .included-grid,
  .preference-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; }
  .form button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav__links a,
  .form button,
  .form input,
  .form textarea { transition: none; }
}

/* ============================================================
   Neighbourhood archive and framed images
   ============================================================ */

.neighbourhood-hero-frame {
  margin: 0;
  padding: 14px;
  border-radius: 32px;
  background: var(--ivory);
  box-shadow: 0 22px 60px rgba(10, 10, 10, 0.10);
}

.neighbourhood-hero-frame img {
  width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}

/* Quick notes below hero */

.neighbourhood-quick-notes {
  padding: 48px 0 28px;
  background: var(--surface-warm);
}

.neighbourhood-quick-notes .notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Historic layer section */

.history-feature {
  padding: 92px 0;
  background: var(--ivory);
}

.history-feature__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.history-feature__text {
  max-width: 520px;
}

.history-feature__text h2 {
  margin-bottom: 14px;
}

.history-feature__figure {
  margin: 0;
  padding: 12px;
  border-radius: 28px;
  background: var(--surface-warm);
  box-shadow: 0 18px 45px rgba(10, 10, 10, 0.08);
  cursor: zoom-in;
}

.history-feature__figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  filter: sepia(0.08);
}

/* Image inside Local character */

.character__image {
  margin: 0;
  padding: 12px;
  border-radius: 26px;
  background: var(--ivory);
  box-shadow: 0 18px 45px rgba(10, 10, 10, 0.08);
  cursor: zoom-in;
}

.character__image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: sepia(0.08);
}

/* Archive carousel */

.archive-carousel {
  padding: 84px 0;
  background: var(--surface-warm);
}

.archive-carousel__intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.archive-carousel__intro h2 {
  margin-bottom: 14px;
}

.archive-carousel__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 0 18px;
  scrollbar-width: thin;
}

.archive-slide {
  flex: 0 0 min(78vw, 760px);
  margin: 0;
  background: var(--ivory);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(10, 10, 10, 0.08);
  scroll-snap-align: start;
  cursor: zoom-in;
}

.archive-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: sepia(0.08);
}

.archive-carousel__hint {
  margin-top: 8px;
  font-size: 0.82rem;
  color: rgba(110, 110, 110, 0.55);
}

/* Archive popup */

.archive-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(10, 10, 10, 0.86);
}

.archive-lightbox.open { display: flex; }

.archive-lightbox__image {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(10, 10, 10, 0.35);
}

.archive-lightbox__close,
.archive-lightbox__prev,
.archive-lightbox__next {
  position: absolute;
  border: 0;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.18);
}

.archive-lightbox__close {
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.archive-lightbox__prev,
.archive-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.archive-lightbox__prev { left: 22px; }
.archive-lightbox__next { right: 22px; }

@media (max-width: 820px) {
  .history-feature {
    padding: 68px 0;
  }

  .history-feature__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .neighbourhood-hero-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .neighbourhood-hero-frame img {
    border-radius: 16px;
  }

  .neighbourhood-quick-notes {
    padding: 38px 0 18px;
  }

  .neighbourhood-quick-notes .notes {
    grid-template-columns: 1fr;
  }

  .history-feature__figure {
    padding: 10px;
    border-radius: 20px;
  }

  .history-feature__figure img {
    max-height: none;
    border-radius: 14px;
  }

  .character__image {
    padding: 10px;
    border-radius: 20px;
  }

  .character__image img {
    border-radius: 14px;
  }

  .archive-carousel {
    padding: 64px 0;
  }

  .archive-slide {
    flex-basis: 86vw;
    border-radius: 20px;
  }

  .archive-carousel__hint {
    display: none;
  }

  .archive-lightbox {
    padding: 18px;
  }

  .archive-lightbox__image {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 14px;
  }

  .archive-lightbox__prev,
  .archive-lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .archive-lightbox__prev { left: 12px; }
  .archive-lightbox__next { right: 12px; }

  .archive-lightbox__close {
    top: 12px;
    right: 12px;
  }
}

/* ============================================================
   Contact visibility fixes
   ============================================================ */

.contact-form small,
.contact-form .form-note,
.contact-form .privacy-note,
.contact-form .contact-note,
.form-note,
.privacy-note {
  color: #3f4f49;
  opacity: 1;
}

.contact-privacy-note {
  display: block !important;
  margin-top: 1rem !important;
  color: #31463f !important;
  background: transparent !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative !important;
  z-index: 2 !important;
}

/* ============================================================
   Desktop readability polish
   Safe improvements: spacing, line-length, no color changes
   ============================================================ */

@media (min-width: 821px) {
  .head h1,
  .hero h1,
  .intro h2,
  .section h2,
  .comfort h2,
  .practical h2,
  .apartment-cta h2,
  .walks__intro h2,
  .character h2,
  .history-feature__text h2,
  .archive-carousel__intro h2,
  .panel__intro h2,
  .two-col__lead h2,
  .cta__band h2 {
    text-wrap: balance;
  }

  .head p,
  .hero__sub,
  .intro p,
  .section p,
  .transport .lede,
  .comfort-intro,
  .practical-intro,
  .apartment-cta p,
  .walks__intro p,
  .character p,
  .history-feature__text p,
  .archive-carousel__intro p,
  .two-col__lead p,
  .panel__intro p,
  .step p,
  .preference p,
  .note p,
  .walk p,
  .practical-card p,
  .comfort-card p {
    line-height: 1.58;
  }
}

/* ============================================================
   Final mobile system
   This replaces the previous duplicate mobile override blocks
   ============================================================ */

@media (max-width: 760px) {
  body {
    font-size: 0.92rem;
    line-height: 1.52;
    overflow-x: hidden;
  }

  .wrap {
    width: 100%;
    padding-inline: 14px;
  }

  .nav__inner {
    height: 66px;
    min-height: 66px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav__links {
    top: 66px;
  }

  .nav__links a {
    padding: 15px 22px;
    font-size: 0.92rem;
  }

  .head {
    padding-top: 92px !important;
    padding-bottom: 28px !important;
  }

  .head h1 {
    font-size: clamp(2rem, 9.5vw, 3.1rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em !important;
    max-width: 12ch;
    text-wrap: balance;
  }

  .head p {
    font-size: 0.92rem !important;
    line-height: 1.48 !important;
    margin-top: 14px !important;
    max-width: 38rem;
  }

  .eyebrow,
  .head .eyebrow,
  .section-number,
  .info-card__kicker {
    font-size: 0.68rem !important;
    letter-spacing: 0.09em !important;
    margin-bottom: 8px !important;
  }

  .section,
  .intro,
  .home-preview,
  .transport,
  .walks,
  .two-col,
  .character,
  .history-feature,
  .archive-carousel {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .section-head {
    display: block !important;
    padding-top: 24px !important;
    margin-bottom: 14px !important;
  }

  .section-head h2,
  .intro h2,
  .home-preview__intro h2,
  .transport h2,
  .walks__intro h2,
  .history-feature__text h2,
  .character h2,
  .archive-carousel__intro h2,
  .panel__intro h2,
  .comfort h2,
  .practical h2,
  .two-col__lead h2,
  .apartment-cta h2 {
    font-size: clamp(1.45rem, 6.8vw, 2.05rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.035em !important;
    text-wrap: balance;
  }

  .section-head p,
  .intro p,
  .home-preview__intro p,
  .transport .lede,
  .walks__intro p,
  .history-feature__text p,
  .character p,
  .archive-carousel__intro p,
  .panel__intro p,
  .comfort-intro,
  .practical-intro,
  .two-col__lead p,
  .apartment-cta p,
  .cta__band p {
    font-size: 0.86rem !important;
    line-height: 1.42 !important;
  }

  /* Home mobile */

  section.hero {
    min-height: auto !important;
  }

  section.hero .hero__image {
    min-height: 66vh !important;
  }

  section.hero .hero__content {
    padding-top: 104px !important;
    padding-bottom: 46px !important;
  }

  section.hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.75rem) !important;
    line-height: 0.9 !important;
    max-width: 12ch !important;
  }

  .hero__sub {
    max-width: 31ch !important;
    margin-top: 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.42 !important;
  }

  .hero__cta {
    margin-top: 22px !important;
    gap: 8px !important;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px !important;
    padding: 0.66rem 0.95rem !important;
    font-size: 0.84rem !important;
  }

  .intro {
    padding-top: 44px !important;
    padding-bottom: 32px !important;
  }

  .home-preview {
    padding-top: 28px !important;
    padding-bottom: 34px !important;
  }

  .home-preview__intro {
    margin-bottom: 8px !important;
  }

  .stats {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .stats__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .stat {
    padding: 9px 4px !important;
    border-radius: 13px !important;
    min-width: 0 !important;
  }

  .stat .n {
    font-size: clamp(1.05rem, 6.5vw, 1.55rem) !important;
    line-height: 0.95 !important;
  }

  .stat .l {
    margin-top: 4px !important;
    font-size: 0.53rem !important;
    line-height: 1.12 !important;
  }

  .transport {
    padding-top: 22px !important;
    padding-bottom: 34px !important;
  }

  .transport__grid,
  .two-col__grid,
  .character__grid,
  .history-feature__grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .transit li {
    gap: 9px !important;
    padding: 9px 0 !important;
  }

  .transit .num {
    min-width: 1.25em !important;
    font-size: 0.9rem !important;
  }

  .transit .txt {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
  }

  /* Smaller CTA blocks */

  .cta {
    padding-top: 28px !important;
    padding-bottom: 34px !important;
  }

  .cta__band {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .cta__band h2 {
    font-size: clamp(1.35rem, 6.3vw, 1.85rem) !important;
    line-height: 1.04 !important;
  }

  .cta__band p {
    margin-top: 9px !important;
    font-size: 0.8rem !important;
    line-height: 1.36 !important;
  }

  .cta__band .btn {
    margin-top: 16px !important;
    min-height: 38px !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.8rem !important;
  }

  /* Mobile galleries / carousels */

  .home-preview__grid,
  .gallery-grid,
  .views-gallery,
  .archive-carousel__track {
    position: relative !important;
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding-top: 24px !important;
    padding-bottom: 10px !important;
    scrollbar-width: thin !important;
  }

  .home-preview__grid::before,
  .gallery-grid::before,
  .views-gallery::before,
  .archive-carousel__track::before {
    content: "Swipe sideways →";
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.64rem;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.68;
    pointer-events: none;
  }

  .home-preview__grid figure,
  .gallery-grid .gallery-item,
  .views-gallery .gallery-item,
  .archive-carousel__track .archive-slide {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    flex: 0 0 78vw !important;
    width: 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    scroll-snap-align: start !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .home-preview__grid figure.reveal,
  .gallery-grid .gallery-item.reveal,
  .views-gallery .gallery-item.reveal,
  .archive-carousel__track.reveal,
  .archive-carousel__track .archive-slide.reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .home-preview__grid figure img,
  .gallery-grid .gallery-item img,
  .views-gallery .gallery-item img,
  .archive-carousel__track .archive-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .gallery-grid .gallery-item.hero,
  .gallery-grid .gallery-item.mate,
  .gallery-grid .gallery-item.service,
  .gallery-grid .gallery-item.terrace-balanced,
  .views-gallery .view-small-left,
  .views-gallery .view-large-right,
  .views-gallery .view-large-left,
  .views-gallery .view-small-right {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Strong protection against homepage .hero rules affecting gallery first images */

  .gallery-grid .gallery-item.hero,
  .views-gallery .gallery-item.hero {
    position: relative !important;
    display: block !important;
    align-items: initial !important;
    justify-content: initial !important;
    background: var(--ivory) !important;
    color: inherit !important;
  }

  .gallery-grid .gallery-item.hero::after,
  .views-gallery .gallery-item.hero::after {
    content: none !important;
    display: none !important;
  }

  /* Apartment mobile */

  .hero-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    border-radius: 20px !important;
  }

  .hero-image img,
  .head .hero-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
  }

  .views-intro-section {
    padding-top: 26px !important;
  }

  .views-intro-section .section-head {
    margin-bottom: 8px !important;
  }

  .comfort,
  .practical {
    padding: 22px 14px !important;
    border-radius: 18px !important;
    margin-top: 26px !important;
    margin-bottom: 22px !important;
  }

  .comfort-grid,
  .practical-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .comfort-card,
  .practical-card {
    min-height: 0 !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .comfort-card span {
    font-size: 0.58rem !important;
    letter-spacing: 0.07em !important;
  }

  .comfort-card h3,
  .practical-card strong {
    display: block;
    font-size: 0.78rem !important;
    line-height: 1.12 !important;
    margin: 5px 0 3px !important;
  }

  .comfort-card p,
  .practical-card p {
    font-size: 0.64rem !important;
    line-height: 1.26 !important;
  }

  .practical-card:nth-child(5) {
    grid-column: 1 / -1 !important;
  }

  .apartment-cta {
    padding: 18px 14px !important;
    border-radius: 18px !important;
    margin-top: 22px !important;
    margin-bottom: 32px !important;
    gap: 12px !important;
  }

  .apartment-cta .button {
    min-height: 38px !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.8rem !important;
  }

  /* Neighbourhood mobile */

  .neighbourhood-image,
  .neighborhood-image {
    padding-top: 10px !important;
    padding-bottom: 22px !important;
  }

  .neighbourhood-hero-frame {
    padding: 8px !important;
    border-radius: 20px !important;
  }

  .neighbourhood-hero-frame img {
    border-radius: 14px !important;
  }

  .neighbourhood-quick-notes {
    padding-top: 22px !important;
    padding-bottom: 24px !important;
  }

  .neighbourhood-quick-notes .notes,
  .notes {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .note {
    padding: 9px 7px !important;
    border-radius: 13px !important;
  }

  .note h3 {
    font-size: 0.68rem !important;
    line-height: 1.08 !important;
    margin-bottom: 3px !important;
  }

  .note p {
    font-size: 0.55rem !important;
    line-height: 1.18 !important;
  }

  .walks__intro {
    margin-bottom: 18px !important;
  }

  .walks__intro h2 {
    max-width: 12ch !important;
  }

  .walks__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .walk {
    display: block !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .walk__time {
    display: block;
    font-size: 0.78rem !important;
    margin-bottom: 4px !important;
  }

  .walk p {
    font-size: 0.62rem !important;
    line-height: 1.22 !important;
  }

  /* Exchange + Contact mobile */

  .two-col {
    padding-top: 26px !important;
    padding-bottom: 36px !important;
  }

  .two-col__grid {
    gap: 18px !important;
  }

  .two-col__lead {
    position: static !important;
  }

  .info-card,
  .panel {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }

  .info-card {
    margin-top: 18px !important;
  }

  .info-card h3 {
    font-size: 1rem !important;
    line-height: 1.12 !important;
    margin-bottom: 10px !important;
  }

  .info-card ul {
    gap: 8px !important;
  }

  .info-card li,
  .info-card p,
  .info-card__note,
  .privacy-note,
  .step p,
  .preference p,
  .field label,
  .contact-privacy-note {
    font-size: 0.76rem !important;
    line-height: 1.32 !important;
  }

  .content-stack,
  .steps {
    gap: 10px !important;
  }

  .panel__intro {
    margin-bottom: 14px !important;
  }

  .step {
    display: grid !important;
    grid-template-columns: 30px 1fr !important;
    gap: 9px !important;
    align-items: start !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .step__number {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.62rem !important;
    margin-top: 0 !important;
  }

  .step h3,
  .preference h3 {
    font-size: 0.9rem !important;
    line-height: 1.14 !important;
    margin-bottom: 3px !important;
  }

  .preference-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .preference {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .panel--pine {
    padding: 18px 14px !important;
  }

  .button-row {
    gap: 7px !important;
    margin-top: 14px !important;
  }

  .button,
  button[type="submit"] {
    min-height: 38px !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.78rem !important;
  }

  .form-grid {
    gap: 10px !important;
  }

  .field {
    gap: 5px !important;
  }

  input,
  textarea {
    font-size: 0.86rem !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
  }

  textarea {
    min-height: 118px !important;
  }

  .form-actions {
    gap: 10px !important;
    margin-top: 16px !important;
  }

  footer {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }

  footer .wrap {
    display: block !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  footer .wrap span {
    display: block !important;
  }

  footer .wrap span:last-child {
    margin-top: 5px !important;
    font-size: 0.62rem !important;
    line-height: 1.25 !important;
    opacity: 0.5 !important;
    max-width: 34ch !important;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding-inline: 11px;
  }

  .head h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem) !important;
  }

  section.hero h1 {
    font-size: clamp(2.25rem, 13vw, 3.35rem) !important;
  }

  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }

  .stat {
    padding: 8px 3px !important;
  }

  .stat .n {
    font-size: clamp(0.98rem, 6vw, 1.35rem) !important;
  }

  .stat .l {
    font-size: 0.49rem !important;
  }

  .home-preview__grid figure,
  .gallery-grid .gallery-item,
  .views-gallery .gallery-item,
  .archive-carousel__track .archive-slide {
    flex-basis: 82vw !important;
    width: 82vw !important;
    min-width: 82vw !important;
    max-width: 82vw !important;
  }

  .comfort-grid,
  .practical-grid,
  .walks__grid,
  .preference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .neighbourhood-quick-notes .notes,
  .notes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .button-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ============================================================
   Final hierarchy + mobile carousel QA — June 2026
   Safe override layer: keep this at the very end of the CSS.
   ============================================================ */

@media (min-width: 821px) {
  body {
    font-size: 16px;
    line-height: 1.57;
  }

  .head {
    padding-block: clamp(48px, 6vw, 82px) clamp(20px, 3vw, 36px);
  }

  .head h1 {
    font-size: clamp(2.25rem, 5.4vw, 4.1rem);
    line-height: .98;
  }

  .head p {
    margin-top: 16px;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.55;
  }

  .eyebrow,
  .head .eyebrow,
  .section-number,
  .info-card__kicker {
    font-size: .72rem;
    letter-spacing: .13em;
    margin-bottom: 10px;
  }

  .btn,
  .button {
    min-height: 44px;
    padding: 12px 22px;
    font-size: .93rem;
  }

  /* Home */

  .hero {
    min-height: 88vh;
  }

  .hero__content {
    padding-block: 112px 58px;
  }

  .hero__eyebrow {
    font-size: .72rem;
    padding: 6px 12px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 6.8vw, 5.45rem);
    line-height: .92;
  }

  .hero__sub {
    max-width: 52ch;
    margin-top: 18px;
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.5;
  }

  .hero__cta {
    margin-top: 28px;
    gap: 12px;
  }

  .intro {
    padding-block: clamp(58px, 7.2vw, 96px) clamp(32px, 4vw, 54px);
  }

  .intro h2 {
    font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  }

  .intro p {
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .home-preview {
    padding-bottom: clamp(54px, 7vw, 88px);
  }

  .home-preview__intro {
    margin-bottom: 18px;
  }

  .home-preview__intro h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
    margin-bottom: 8px;
  }

  .home-preview__intro p {
    font-size: .98rem;
    line-height: 1.52;
  }

  .stats {
    padding-block: clamp(38px, 4.4vw, 58px);
  }

  .stats__grid {
    gap: 22px;
  }

  .stat .n {
    font-size: clamp(2.05rem, 3.7vw, 3.3rem);
  }

  .stat .l {
    margin-top: 8px;
    font-size: .9rem;
    line-height: 1.32;
  }

  .transport {
    padding-block: clamp(42px, 5.2vw, 74px);
  }

  .transport__grid {
    gap: clamp(34px, 4vw, 48px);
  }

  .transport h2 {
    font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  }

  .transport .lede {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.52;
  }

  .transit li {
    gap: 16px;
    padding: 14px 0;
  }

  .transit .num {
    font-size: 1.55rem;
  }

  .hosts {
    padding-block: clamp(56px, 7vw, 94px);
  }

  .hosts h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.8rem);
  }

  .hosts p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Shared CTA boxes — same compact hierarchy across pages */

  .cta {
    padding-block: clamp(50px, 6vw, 82px);
  }

  .cta__band {
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(30px, 3.8vw, 48px);
    border-radius: 24px;
  }

  .cta__band h2 {
    font-size: clamp(1.45rem, 3vw, 2.3rem);
    line-height: 1.02;
  }

  .cta__band p {
    margin-top: 10px;
    font-size: .98rem;
    line-height: 1.5;
  }

  .cta__band .btn {
    margin-top: 22px;
  }

  /* Apartment */

  .hero-image {
    height: min(61vh, 610px);
    min-height: 360px;
  }

  .section {
    padding-top: 58px;
  }

  .section-head {
    gap: 26px;
    padding-top: 28px;
    margin-bottom: 22px;
  }

  .section h2 {
    font-size: clamp(1.45rem, 2.9vw, 2.55rem);
    line-height: 1.02;
    margin-bottom: 9px;
  }

  .section p {
    font-size: .98rem;
    line-height: 1.52;
  }

  .comfort {
    margin-top: 64px;
    padding: clamp(28px, 4vw, 46px);
  }

  .comfort h2 {
    font-size: clamp(1.65rem, 3.6vw, 3rem);
  }

  .comfort-intro {
    margin: 14px 0 24px;
    font-size: .98rem;
    line-height: 1.5;
  }

  .comfort-card {
    min-height: 158px;
    padding: 18px;
  }

  .comfort-card span {
    font-size: .72rem;
  }

  .comfort-card h3 {
    margin: 16px 0 8px;
    font-size: 1.08rem;
  }

  .comfort-card p {
    font-size: .9rem;
  }

  .practical {
    padding: clamp(26px, 3.6vw, 44px);
  }

  .practical h2 {
    font-size: clamp(1.55rem, 3.1vw, 2.65rem);
  }

  .practical-intro {
    margin: 14px 0 24px;
    font-size: .98rem;
    line-height: 1.5;
  }

  .practical-card {
    min-height: 145px;
    padding: 18px;
  }

  .practical-card strong {
    font-size: 1.02rem;
  }

  .practical-card p {
    font-size: .9rem;
  }

  .apartment-cta {
    margin-top: 34px;
    gap: 24px;
    padding: clamp(24px, 3.2vw, 38px);
    border-radius: 24px;
  }

  .apartment-cta h2 {
    font-size: clamp(1.35rem, 2.5vw, 2.1rem);
    line-height: 1.04;
  }

  .apartment-cta p {
    margin-top: 8px;
    font-size: .96rem;
    line-height: 1.5;
  }

  .apartment-cta .button {
    min-height: 42px;
    padding: 12px 20px;
    font-size: .9rem;
  }

  /* Neighbourhood */

  .neighborhood-image,
  .neighbourhood-image {
    padding-bottom: clamp(48px, 6vw, 78px);
  }

  .walks,
  .character,
  .history-feature,
  .archive-carousel {
    padding-block: clamp(54px, 6vw, 86px);
  }

  .walks__intro {
    margin-bottom: 28px;
  }

  .walks__intro h2,
  .character h2,
  .history-feature__text h2,
  .archive-carousel__intro h2 {
    font-size: clamp(1.5rem, 3.25vw, 2.55rem);
    line-height: 1.03;
  }

  .walks__intro p,
  .character p,
  .history-feature__text p,
  .archive-carousel__intro p {
    font-size: .98rem;
    line-height: 1.52;
  }

  .walk {
    grid-template-columns: 78px 1fr;
    gap: 18px;
    padding: 20px;
  }

  .walk__time {
    font-size: 1.3rem;
  }

  .walk p {
    font-size: .96rem;
    line-height: 1.45;
  }

  .note {
    padding: 20px;
  }

  .note h3 {
    font-size: 1.14rem;
  }

  .note p {
    font-size: .94rem;
  }

  /* Exchange + Contact */

  .two-col {
    padding-block: clamp(30px, 4vw, 48px) clamp(54px, 6vw, 86px);
  }

  .two-col__lead h2 {
    font-size: clamp(1.45rem, 2.7vw, 2.2rem);
    line-height: 1.04;
  }

  .two-col__lead p {
    font-size: .98rem;
    line-height: 1.52;
  }

  .info-card {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 30px);
    border-radius: 22px;
  }

  .info-card h3 {
    font-size: clamp(1.22rem, 2.2vw, 1.68rem);
    line-height: 1.04;
  }

  .info-card li,
  .info-card p,
  .info-card__note,
  .privacy-note {
    font-size: .9rem;
    line-height: 1.48;
  }

  .content-stack {
    gap: 20px;
  }

  .panel {
    padding: clamp(22px, 3.2vw, 32px);
    border-radius: 24px;
  }

  .panel__intro {
    margin-bottom: 20px;
  }

  .panel__intro h2 {
    font-size: clamp(1.28rem, 2.4vw, 1.9rem);
    line-height: 1.04;
  }

  .panel__intro p {
    font-size: .96rem;
    line-height: 1.52;
  }

  .step {
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 18px;
  }

  .step__number {
    width: 42px;
    height: 42px;
  }

  .step h3 {
    font-size: 1.12rem;
  }

  .step p {
    font-size: .94rem;
    line-height: 1.48;
  }

  .preference {
    padding: 18px;
  }

  .preference h3 {
    font-size: 1.08rem;
  }

  .preference p,
  .included-grid li {
    font-size: .94rem;
    line-height: 1.45;
  }

  footer {
    padding-block: 26px;
  }

  footer .wrap {
    font-size: .78rem;
  }

  footer .wrap span:last-child {
    font-size: .66rem;
    line-height: 1.3;
    opacity: .5;
    max-width: 42ch;
  }
}

@media (max-width: 760px) {
  body {
    font-size: .91rem;
    line-height: 1.5;
  }

  .head {
    padding-top: 84px !important;
    padding-bottom: 24px !important;
  }

  .head h1 {
    font-size: clamp(1.82rem, 8.8vw, 2.8rem) !important;
    max-width: 13ch !important;
  }

  .head p {
    font-size: .88rem !important;
    line-height: 1.45 !important;
  }

  .section-head h2,
  .intro h2,
  .home-preview__intro h2,
  .transport h2,
  .walks__intro h2,
  .history-feature__text h2,
  .character h2,
  .archive-carousel__intro h2,
  .panel__intro h2,
  .comfort h2,
  .practical h2,
  .two-col__lead h2,
  .apartment-cta h2,
  .cta__band h2 {
    font-size: clamp(1.3rem, 6.1vw, 1.9rem) !important;
    line-height: 1.04 !important;
  }

  .section,
  .intro,
  .home-preview,
  .transport,
  .walks,
  .two-col,
  .character,
  .history-feature,
  .archive-carousel {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  section.hero .hero__content {
    padding-top: 98px !important;
    padding-bottom: 42px !important;
  }

  section.hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.35rem) !important;
  }

  .hero__sub {
    font-size: .86rem !important;
    line-height: 1.4 !important;
  }

  .btn,
  .button,
  button[type="submit"] {
    min-height: 37px !important;
    padding: .58rem .88rem !important;
    font-size: .78rem !important;
  }

  .stats {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .transport {
    padding-top: 20px !important;
    padding-bottom: 30px !important;
  }

  .cta__band,
  .apartment-cta,
  .info-card,
  .panel,
  .comfort,
  .practical {
    border-radius: 17px !important;
  }

  .cta__band {
    padding: 18px 14px !important;
  }

  .cta__band p,
  .apartment-cta p,
  .panel__intro p,
  .two-col__lead p,
  .section-head p,
  .section p {
    font-size: .8rem !important;
    line-height: 1.36 !important;
  }

  .apartment-cta {
    padding: 16px 13px !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  .panel__intro {
    margin-bottom: 12px !important;
  }

  /* Mobile horizontal galleries: preserve DOM order and make the first image snap first. */

  .home-preview__grid,
  .gallery-grid,
  .views-gallery,
  .archive-carousel__track {
    justify-content: flex-start !important;
    align-items: stretch !important;
    scroll-padding-left: 0 !important;
    scroll-snap-type: x mandatory !important;
    overscroll-behavior-x: contain !important;
  }

  .home-preview__grid figure,
  .gallery-grid .gallery-item,
  .views-gallery .gallery-item,
  .archive-carousel__track .archive-slide {
    order: 0 !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }

  .home-preview__grid figure:first-child,
  .gallery-grid .gallery-item:first-child,
  .views-gallery .gallery-item:first-child,
  .archive-carousel__track .archive-slide:first-child {
    order: -1 !important;
  }

  .views-gallery .gallery-item[data-full$="view-3.jpg"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: -2 !important;
    flex: 0 0 78vw !important;
    width: 78vw !important;
    min-width: 78vw !important;
    max-width: 78vw !important;
    aspect-ratio: 4 / 3 !important;
    scroll-snap-align: start !important;
  }

  .gallery-grid .gallery-item img,
  .views-gallery .gallery-item img,
  .home-preview__grid figure img,
  .archive-carousel__track .archive-slide img {
    object-position: center center !important;
  }

  .views-gallery .gallery-item[data-full$="view-3.jpg"] img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .comfort-grid,
  .practical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .comfort-card,
  .practical-card,
  .preference,
  .walk,
  .note {
    border-radius: 13px !important;
  }

  .comfort-card p,
  .practical-card p,
  .note p,
  .walk p {
    line-height: 1.22 !important;
  }

  .step {
    grid-template-columns: 28px 1fr !important;
    gap: 8px !important;
  }

  .step__number {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }

  footer .wrap span:last-child {
    font-size: .6rem !important;
    line-height: 1.24 !important;
    opacity: .46 !important;
  }
}

@media (max-width: 420px) {
  .head h1 {
    font-size: clamp(1.78rem, 8.6vw, 2.45rem) !important;
  }

  section.hero h1 {
    font-size: clamp(2.12rem, 12vw, 3.1rem) !important;
  }

  .gallery-grid .gallery-item,
  .views-gallery .gallery-item,
  .home-preview__grid figure,
  .archive-carousel__track .archive-slide,
  .views-gallery .gallery-item[data-full$="view-3.jpg"] {
    flex-basis: 82vw !important;
    width: 82vw !important;
    min-width: 82vw !important;
    max-width: 82vw !important;
  }
}

