/* DKS Development by Sotiropoulos — site styles
   Palette taken from the logo and the project renders:
   lime-washed white, charcoal, warm stone, sage (logo), and the logo's sun used only as a small marker. */

@font-face { font-family: "Cardo"; src: url("../fonts/cardo-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("../fonts/cardo-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/sourcesans3.woff") format("woff"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F5F1;
  --stone: #E8E3DA;
  --stone-line: #CFC7BA;
  --ink: #2B2F33;
  --ink-soft: #5B6065;
  --sage: #8A9580;
  --olive: #5D6853;
  --sun: #E8835A;

  --serif: "Cardo", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 11vw, 152px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); line-height: 1.25; }

.lede { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 36em; font-weight: 300; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }
.measure { max-width: 38em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--stone { background: var(--stone); }
.section--tight { padding: calc(var(--section) * 0.6) 0; }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--stone-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a { text-decoration: none; font-size: 0.97rem; letter-spacing: 0.01em; position: relative; padding: 6px 0; }
.nav a:not(.btn)[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--sun);
}
.nav a:not(.btn):hover { color: var(--olive); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 1080px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--stone-line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { font-size: 1.25rem; font-family: var(--serif); padding: 12px 0; width: 100%; border-bottom: 1px solid var(--stone); }
  .nav a.btn { margin-top: 20px; font-family: var(--sans); font-size: 1rem; width: auto; border: 1px solid var(--ink); }
  .nav a:not(.btn)[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; margin-top: -3px; }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 450 0.97rem/1 var(--sans); letter-spacing: 0.01em;
  padding: 14px 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--olive); border-color: var(--olive); }
.nav .btn { padding: 11px 18px; }

.link {
  color: var(--olive); text-decoration: none; font-weight: 450;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link:hover { color: var(--ink); }

/* ---------- Home hero ---------- */
.hero { position: relative; }
.hero__img { height: min(76vh, 860px); min-height: 480px; overflow: hidden; background: var(--stone); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__panel {
  position: relative; z-index: 2;
  margin-top: clamp(-200px, -14vw, -96px);
  background: var(--paper);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px) 0 0;
  max-width: 880px;
}
.hero__panel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--paper); }
.hero__panel h1 { margin-bottom: 0.45em; }
.hero__panel .lede { color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .hero__img img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
}
@media (max-width: 700px) {
  .hero__img { height: 62vh; min-height: 380px; }
  .hero__panel { margin-top: -48px; padding-right: 0; }
}

/* ---------- Page heads ---------- */
.page-head { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { max-width: 15em; margin-bottom: 0.5em; }

/* ---------- Grid helpers ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.split > .a { grid-column: 1 / span 5; }
.split > .b { grid-column: 7 / span 6; }
.split--even > .a { grid-column: 1 / span 6; }
.split--even > .b { grid-column: 7 / span 6; }
.split--media > .a { grid-column: 1 / span 7; }
.split--media > .b { grid-column: 9 / span 4; align-self: end; }
@media (max-width: 860px) {
  .split > .a, .split > .b { grid-column: 1 / -1 !important; }
}

.statement { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.18; }

figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Latest development (home) ---------- */
.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: end; }
.feature__img { grid-column: 1 / span 8; }
.feature__img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature__text { grid-column: 9 / span 4; padding-bottom: 8px; }
.feature__text h2 { margin-bottom: 0.6em; }
.feature__text p { margin-bottom: 1.6em; }
@media (max-width: 860px) { .feature__img, .feature__text { grid-column: 1 / -1; } }

.trio { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: clamp(12px, 1.6vw, 24px); }
.trio figure:first-child { grid-row: 1 / span 2; }
.trio figure:first-child img { height: 100%; object-fit: cover; }
.trio img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.trio figure:first-child img { aspect-ratio: auto; min-height: 100%; }
.trio figure:first-child { display: flex; flex-direction: column; }
.trio figure:first-child > a, .trio figure:first-child > img { flex: 1; }
@media (max-width: 700px) {
  .trio { grid-template-columns: 1fr; }
  .trio figure:first-child { grid-row: auto; }
  .trio figure:first-child img { aspect-ratio: 4 / 5; }
}

/* ---------- Record (family numbers) ---------- */
.record { border-top: 1px solid var(--ink); }
.record dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.record dl > div { padding: 22px 24px 4px 0; border-right: 1px solid var(--stone-line); margin-right: 24px; }
.record dl > div:last-child { border-right: 0; margin-right: 0; }
.record dt { font-size: 0.92rem; color: var(--ink-soft); order: 2; }
.record dd { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; }
.record dl > div { display: flex; flex-direction: column; }
.record dd { order: 1; }
.record .note { margin-top: 24px; max-width: 46em; }
@media (max-width: 760px) {
  .record dl { grid-template-columns: 1fr 1fr; }
  .record dl > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--stone-line); padding-bottom: 18px; }
}

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--paper); }
.cta .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 14em; }
.cta p { color: #C9CBC6; margin-top: 14px; }
.cta .btn { border-color: var(--paper); color: var(--paper); }
.cta .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- Residences page ---------- */
.facts { display: grid; grid-template-columns: repeat(5, auto); gap: 0; margin: clamp(32px, 4vw, 56px) 0 0; border-top: 1px solid var(--ink); justify-content: start; }
.facts > div { padding: 18px clamp(20px, 3vw, 48px) 0 0; }
.facts dt { font-size: 0.85rem; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.25; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { padding-bottom: 6px; } }

.wide-img img { width: 100%; max-height: 88vh; object-fit: cover; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 25vw, 380px); gap: clamp(28px, 2.4vw, 36px) clamp(10px, 1.4vw, 20px); }
.gallery figure { grid-column: span 4; display: flex; flex-direction: column; min-height: 0; }
.gallery figure.w8 { grid-column: span 8; }
.gallery figure.w6 { grid-column: span 6; }
.gallery figure.w12 { grid-column: span 12; grid-row: span 2; }
.gallery a { display: block; overflow: hidden; flex: 1; min-height: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { flex-shrink: 0; }
@media (max-width: 760px) {
  .gallery { grid-auto-rows: auto; }
  .gallery figure, .gallery figure.w8, .gallery figure.w6, .gallery figure.w12 { grid-column: span 12; grid-row: auto; }
  .gallery img { height: auto; aspect-ratio: 4 / 3; }
}

.section-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); margin-bottom: clamp(32px, 4vw, 56px); align-items: end; }
.section-head h2 { grid-column: 1 / span 6; }
.section-head p { grid-column: 8 / span 5; color: var(--ink-soft); }
@media (max-width: 860px) { .section-head { gap: 16px; } .section-head h2, .section-head p { grid-column: 1 / -1; } }

/* Residences table */
.units { width: 100%; border-collapse: collapse; font-size: 1rem; }
.units th { text-align: left; font-weight: 450; font-size: 0.85rem; color: var(--ink-soft); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.units td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--stone-line); vertical-align: baseline; }
.units td:first-child { font-family: var(--serif); font-size: 1.6rem; line-height: 1; width: 9%; }
.units .status { white-space: nowrap; }
.units .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); margin-right: 8px; vertical-align: 1px; }
.units .status[data-status="reserved"]::before { background: var(--sun); }
.units .status[data-status="sold"]::before { background: var(--ink-soft); }
.tbc { color: var(--ink-soft); font-style: italic; font-family: var(--serif); }
@media (max-width: 760px) {
  .units thead { display: none; }
  .units, .units tbody, .units tr, .units td { display: block; width: 100% !important; }
  .units tr { padding: 18px 0; border-bottom: 1px solid var(--stone-line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .units td { border: 0; padding: 0; }
  .units td:first-child { grid-column: 1 / -1; margin-bottom: 6px; }
  .units td::before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--ink-soft); }
  .units td:first-child::before { display: none; }
}

/* Plans */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs button {
  font: 450 0.95rem/1 var(--sans); padding: 12px 18px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--stone-line);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan-panel { background: #F3F1EB; border: 1px solid var(--stone-line); padding: clamp(10px, 2vw, 28px); }
.plan-panel[hidden] { display: none; }
.plan-panel img { width: 100%; }
.plan-panel a { display: block; cursor: zoom-in; }

/* Features */
.features { columns: 2; column-gap: clamp(32px, 5vw, 80px); padding: 0; margin: 0; list-style: none; }
.features li { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--stone-line); }
@media (max-width: 640px) { .features { columns: 1; } }

/* Map */
.map { position: relative; aspect-ratio: 16 / 10; background: #E1DDD3; border: 1px solid var(--stone-line); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(.95); }
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px); gap: 14px;
  background-image:
    linear-gradient(var(--stone-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map__pin { position: absolute; left: 50%; top: 42%; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 8px color-mix(in srgb, var(--sun) 22%, transparent); }
.map__placeholder p { background: var(--paper); padding: 10px 14px; margin: 0; }

/* ---------- Heritage ---------- */
.generations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.generations li { padding: 28px clamp(16px, 2.5vw, 40px) 0 0; position: relative; }
.generations li + li { padding-left: clamp(16px, 2.5vw, 40px); border-left: 1px solid var(--stone-line); }
.generations .n { font-family: var(--serif); font-size: 1rem; color: var(--ink-soft); display: block; margin-bottom: 18px; }
.generations h3 { margin-bottom: 0.6em; }
.generations li:last-child h3::after { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); margin-left: 10px; vertical-align: 0.35em; }
@media (max-width: 860px) {
  .generations { grid-template-columns: 1fr; }
  .generations li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--stone-line); margin-top: 28px; }
}

.ground {
  position: relative;
  background-color: var(--stone);
  background-image:
    linear-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ground .split > .a { grid-column: 1 / span 7; }
.ground .split > .b { grid-column: 8 / span 5; align-self: center; }
.ground__text { background: var(--paper); padding: clamp(24px, 3vw, 44px); }
.ground__plan { background: var(--paper); padding: clamp(10px, 1.6vw, 20px); box-shadow: 0 1px 0 var(--stone-line); }

.history { width: 100%; border-collapse: collapse; }
.history th { text-align: left; font-weight: 450; font-size: 0.85rem; color: var(--ink-soft); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.history td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--stone-line); vertical-align: baseline; }
.history td:first-child { font-family: var(--serif); font-size: 1.15rem; width: 12%; }
@media (max-width: 600px) {
  .history th:nth-child(3), .history td:nth-child(3) { display: none; }
}

/* ---------- Approach & enquiries ---------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 80px); }
.principles > div { border-top: 1px solid var(--ink); padding: 22px 0 40px; }
.principles h3 { margin-bottom: 0.4em; }
.principles p { color: var(--ink-soft); max-width: 26em; }
@media (max-width: 700px) { .principles { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--stone-line); }
.contact-list span { display: block; font-size: 0.85rem; color: var(--ink-soft); }
.contact-list a, .contact-list strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; text-decoration: none; }
.contact-list a:hover { color: var(--olive); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-soft);
  padding: 10px 0; border-radius: 0; -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom: 2px solid var(--olive); padding-bottom: 9px; }
.form .check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; -webkit-appearance: auto; appearance: auto; accent-color: var(--olive); }
.form .hp { position: absolute; left: -9999px; }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; min-height: 1.5em; margin: 0; }
.form-status.ok { color: var(--olive); }
.form-status.err { color: #9A3B22; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(30, 32, 34, 0.94); }
.lightbox figure { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 4vw 24px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; background: #fff; }
.lightbox figcaption { color: #D9D6CF; }
.lightbox button { position: absolute; background: none; border: 0; color: #EDEAE4; cursor: pointer; font: 400 1rem var(--sans); padding: 14px 18px; }
.lightbox .close { top: 8px; right: 8px; }
.lightbox .prev, .lightbox .next { top: 50%; transform: translateY(-50%); font-size: 2rem; font-family: var(--serif); }
.lightbox .prev { left: 4px; }
.lightbox .next { right: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 40px; border-top: 1px solid var(--stone-line); }
.site-footer .top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.site-footer .logo img { width: 150px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--olive); }
.site-footer .bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--stone-line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .logo { grid-column: 1 / -1; } }

/* utilities */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: clamp(48px, 6vw, 88px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Company details (footer) */
.site-footer .legal { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 0.78rem; color: var(--ink-soft); }
.site-footer li { overflow-wrap: anywhere; }

/* Architect credit (residences) */
.architect { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--stone-line); }
.architect h3 { margin-bottom: 0.4em; }
.architect p { font-size: 0.97rem; }
.facts { grid-template-columns: repeat(6, auto); }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Language switch */
.site-header .nav { margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; margin-left: clamp(16px, 2vw, 28px); font-size: 0.85rem; letter-spacing: 0.04em; }
.lang a { text-decoration: none; color: var(--ink-soft); padding: 6px 7px; }
.lang a + a { border-left: 1px solid var(--stone-line); }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang a:hover { color: var(--olive); }
@media (max-width: 1080px) { .lang { margin-left: auto; margin-right: 8px; } }
@media (max-width: 1080px) {
  .site-header .wrap { gap: 4px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand img { height: auto; max-height: 32px; width: 100%; max-width: 226px; }
  .lang { margin-right: 2px; }
  .nav-toggle { flex-shrink: 0; }
}
@media (max-width: 760px) {
  .record dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .record dd { font-size: clamp(1.6rem, 8vw, 2.2rem); }
}
@media (max-width: 600px) {
  .history { table-layout: fixed; font-size: 0.95rem; }
  .history td, .history th { padding-right: 10px; overflow-wrap: anywhere; }
  .history td:first-child, .history th:first-child { width: 22%; }
}


/* Content placeholder, to be replaced with final copy */
.placeholder { border: 1px dashed var(--ink-soft); padding: 18px 20px; background: color-mix(in srgb, var(--paper) 60%, transparent); }
.placeholder h3 { margin-bottom: 0.3em; }
.placeholder p { color: var(--ink-soft); font-style: italic; }

/* Gallery: tall items span two rows */
.gallery figure.tall { grid-row: span 2; }
@media (max-width: 760px) { .gallery figure.tall { grid-row: auto; } .gallery figure.tall img { aspect-ratio: 4 / 5; } }

/* Whole-building renders (residences) */
.building { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.building a { display: block; overflow: hidden; }
.building img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.building a:hover img { transform: scale(1.02); }
@media (max-width: 760px) { .building { grid-template-columns: 1fr; } }

/* Flats table: outdoor sub-label */
.units .sub { display: block; font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; }
.units td:nth-child(4), .units td:nth-child(5), .units td:nth-child(6) { white-space: nowrap; }
@media (max-width: 760px) { .units td:nth-child(6) { white-space: normal; } }

/* Distances (location) */
.distances { margin: 12px 0 0; }
.distances > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--stone-line); }
.distances dt { color: var(--ink-soft); }
.distances dd { margin: 0; white-space: nowrap; }
.map-figure { align-self: start; }
.map-figure a { display: block; border: 1px solid var(--stone-line); background: var(--paper); cursor: zoom-in; }
.gallery { grid-auto-flow: row dense; }

/* Feature icons (from the sales brochure) */
.features li { display: flex; align-items: flex-start; gap: 14px; }
.features li img { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; }
@media (min-width: 761px) { .record dd { white-space: nowrap; font-size: clamp(1.7rem, 2.7vw, 3rem); } }
