/* Hyde Park & Belgravia Property Consultants — site.css
   Palette/type per DESIGN.md. Dual ground: railing green / stucco white. */

@font-face {
  font-family: 'Libre Caslon Display';
  src: url('fonts/LibreCaslonDisplay-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('fonts/LibreCaslonText-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Libre Caslon Text';
  src: url('fonts/LibreCaslonText-400i.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/HankenGrotesk-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/HankenGrotesk-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  --railing: #1B2A21;
  --railing-deep: #14201A;
  --stucco: #F0EDE4;
  --ink: #26302A;
  --brass: #A98B58;
  --brass-bright: #C9A96E;
  --stucco-dim: #AFBCB2;
  --line-light: #DBD6C7;
  --line-dark: #33493C;

  --display: 'Libre Caslon Display', 'Times New Roman', serif;
  --body: 'Libre Caslon Text', Georgia, serif;
  --utility: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { color-scheme: light; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--stucco);
  line-height: 1.65;
  -webkit-tap-highlight-color: transparent;
}

a, button { touch-action: manipulation; }

h1, h2, h3 { text-wrap: balance; }

section[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 10;
  background: var(--stucco);
  color: var(--ink);
  font-family: var(--utility);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  text-decoration: none;
}
.skip:focus-visible { top: 12px; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.eyebrow {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

/* ---------- header ---------- */

.top {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
}
.top-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.wordmark {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--stucco);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .wm-amp {
  font-family: var(--body);
  font-style: italic;
  color: var(--brass-bright);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.top nav a {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stucco-dim);
  text-decoration: none;
  padding: 8px 0;
}
.top nav a:hover { color: var(--brass-bright); }

/* ---------- hero ---------- */

.hero {
  background: var(--railing);
  color: var(--stucco);
  min-height: 96vh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  position: relative;
  padding: 140px 0 96px;
}
.hero .eyebrow { color: var(--brass-bright); }

.hero-name {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 8.4vw, 84px);
  letter-spacing: 0.06em;
  line-height: 1.04;
  margin-top: 40px;
}
.hero-name .line { display: block; }
.hero-name .amp {
  display: block;
  font-family: var(--body);
  font-style: italic;
  text-transform: none;
  font-size: clamp(76px, 15vw, 148px);
  line-height: 0.72;
  color: var(--brass-bright);
  margin: 10px 0 2px;
}

.hero-sub {
  max-width: 46ch;
  margin: 40px auto 0;
  font-size: 19px;
  color: var(--stucco-dim);
}
.hero-sub em { color: var(--stucco); font-style: italic; }

.btn {
  display: inline-block;
  margin-top: 48px;
  font-family: var(--utility);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  text-decoration: none;
  border: 1px solid var(--brass);
  padding: 16px 34px;
  min-height: 44px;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover {
  background: var(--brass-bright);
  border-color: var(--brass-bright);
  color: var(--railing-deep);
}

/* hero load sequence */
@media (prefers-reduced-motion: no-preference) {
  .hero .rise {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .9s cubic-bezier(.22,.8,.35,1) forwards;
  }
  .hero .rise-1 { animation-delay: .08s; }
  .hero .rise-2 { animation-delay: .20s; }
  .hero .rise-3 { animation-delay: .34s; }
  .hero .rise-4 { animation-delay: .52s; }
  .hero .rise-5 { animation-delay: .68s; }
  .hero-name .amp {
    opacity: 0;
    animation: amp 1.1s cubic-bezier(.22,.8,.35,1) .42s forwards;
  }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes amp {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
  }
}

/* ---------- bands ---------- */

.band { padding: 120px 0; }
.band--railing {
  background: var(--railing);
  color: var(--stucco);
}
.band--railing .eyebrow { color: var(--brass-bright); }

.section-head {
  max-width: 65ch;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  margin-top: 18px;
}
.section-body {
  max-width: 65ch;
  margin-top: 28px;
}
.section-body p + p { margin-top: 20px; }

/* scroll reveal — только при наличии JS (класс .js ставит инлайн-скрипт) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,.8,.35,1);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- services ledger ---------- */

.ledger {
  margin-top: 56px;
  border-bottom: 1px solid var(--line-light);
}
.ledger-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px 40px;
  padding: 30px 0;
  border-top: 1px solid var(--line-light);
}
.ledger-row dt {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 5px;
}
.ledger-row dd {
  max-width: 60ch;
}

/* ---------- neighbourhoods ---------- */

.terrace {
  color: var(--line-light);
  margin: 64px 0 56px;
  width: 100%;
  height: clamp(96px, 13.5vw, 146px); /* slice-кроп по краям на узких экранах */
}

.villages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}
.village .compass {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.village h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  margin: 10px 0 14px;
}
.villages-coda {
  margin-top: 48px;
  font-style: italic;
  color: var(--ink);
  max-width: 65ch;
}

/* ---------- contact ---------- */

.contact-rows {
  margin-top: 48px;
  max-width: 560px;
}
.contact-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 32px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
}
.contact-row:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-row dt {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stucco-dim);
  padding-top: 4px;
}
.contact-row dd { font-size: 19px; }
.contact-row a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 2px;
}
.contact-row a:hover { border-bottom-color: var(--brass-bright); }
.contact-note { color: var(--stucco-dim); font-style: italic; }

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

.footer {
  background: var(--railing-deep);
  color: var(--stucco-dim);
  padding: 48px 0 56px;
}
.footer-inner {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--line-dark);
  padding-top: 36px;
}
.footer p {
  font-family: var(--utility);
  font-size: 13px;
  line-height: 1.7;
  max-width: 72ch;
}
.footer a {
  color: var(--stucco);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}
.footer a:hover { border-bottom-color: var(--brass-bright); }

/* ---------- privacy page ---------- */

.page-plain { padding: 96px 0 120px; }
.page-plain h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 16px;
}
.page-plain h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin: 44px 0 12px;
}
.page-plain p, .page-plain li { max-width: 65ch; }
.page-plain p + p { margin-top: 16px; }
.page-plain ul { padding-left: 22px; margin-top: 12px; }
.page-plain .backlink {
  font-family: var(--utility);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
}
.page-plain header.top-plain {
  margin-bottom: 40px;
}

/* ---------- 404 page ---------- */

.page-404 {
  background: var(--railing);
  color: var(--stucco);
  min-height: 88vh;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 96px 0 112px;
}
.page-404 .eyebrow { color: var(--brass-bright); }
/* painted house number on a stucco portico */
.house-no {
  display: inline-block;
  margin-top: 36px;
  padding: 22px 44px 16px;
  background: var(--stucco);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(56px, 12vw, 88px);
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 7px var(--stucco), inset 0 0 0 8px var(--ink);
}
.page-404 h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 44px);
  margin-top: 44px;
}
.nf-lead {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--stucco-dim);
}
.page-404 .btn { margin-top: 36px; }
.nf-note {
  margin-top: 28px;
  font-family: var(--utility);
  font-size: 14px;
  color: var(--stucco-dim);
}
.nf-note a {
  color: var(--stucco);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
}
.nf-note a:hover { border-bottom-color: var(--brass-bright); }

/* ---------- responsive ---------- */

@media (max-width: 768px) {
  .band { padding: 88px 0; }
  .hero { min-height: 88vh; padding-top: 120px; }
  .terrace { color: #C6BEA7; }
  .villages { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 480px) {
  html { font-size: 17px; }
  .top-inner { flex-direction: column; align-items: center; gap: 12px; }
  .top nav { justify-content: center; }
  .hero { padding-top: 196px; }
  .hero-sub { font-size: 17px; }
}
