/* ============================================================
   Homepage — "Atelier" layout (scoped to body.home-atelier)
   Warm ivory, near-black ink, fine bronze, hairline rules.
   No boxes, rounded corners or shadows.
   ============================================================ */
body.home-atelier { --ivory: #f3efe6; --hair: rgba(28, 26, 23, 0.14); background: var(--ivory); }
.ha-wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.ha-narrow { max-width: 900px; }
.ha-center { text-align: center; }
.ha-section { padding: 120px 0; }
/* Hairlines fade out at their ends rather than stopping short */
.ha-section + .ha-section { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--hair) 18%, var(--hair) 82%, transparent) 1; }

.ha-label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-soft); margin: 0;
}
.ha-title, .ha-display { font-family: var(--serif); font-weight: 300; color: var(--ink); letter-spacing: -0.01em; }
.ha-title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
.ha-display { font-size: clamp(1.6rem, 3.8vw, 3.5rem); line-height: 1.1; text-align: center; white-space: nowrap; margin-bottom: 64px; }

/* Understated underlined link used throughout */
.ha-link {
  display: inline-block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: color .25s, border-color .25s;
}
.ha-link:hover { color: var(--bronze-deep); }
.ha-link.light { color: #f3efe6; }
.ha-link.light:hover { color: #c9ad82; }

/* Slim arrows: a hairline with a small head */
.ha-arrow {
  width: 46px; height: 30px; border: none; background: none; cursor: pointer; position: relative; padding: 0; color: var(--ink);
}
.ha-arrow span { position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: currentColor; }
.ha-arrow span::after {
  content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.ha-arrow.prev span::after { right: auto; left: 0; transform: rotate(-135deg); }
.ha-arrow:hover { color: var(--bronze-deep); }
.ha-arrow[hidden] { display: none; }
.ha-count { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- 1. Hero + slim header ---------- */
.home-atelier .video-hero { min-height: 100vh; min-height: 100svh; }
.home-atelier .video-hero .shade {
  background: linear-gradient(180deg, rgba(18,16,13,0.55) 0%, rgba(18,16,13,0.12) 30%, rgba(18,16,13,0.18) 65%, rgba(18,16,13,0.5) 100%);
}
.home-atelier .site-header .bar.split { padding-top: 30px; }
.home-atelier .video-hero .hero-tagline {
  font-size: clamp(2.3rem, 5.2vw, 4.6rem); font-weight: 300; letter-spacing: -0.005em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.28);
}
.home-atelier .video-hero .hero-mark { width: clamp(46px, 4.6vw, 66px); margin-top: 34px; }
.ha-scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 4; transform: translateX(-50%);
  width: 30px; height: 46px; display: block;
}
.ha-scroll span { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.35); overflow: hidden; }
.ha-scroll span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
  animation: ha-drop 2.4s ease-in-out infinite;
}
@keyframes ha-drop { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .ha-scroll span::after { animation: none; top: 30%; } }

/* ---------- 2. Featured properties ---------- */
.ha-featured { padding-top: 96px; padding-bottom: 60px; }
.ha-private { padding-top: 60px; }
/* Raphael & Dema */
.ha-founders { padding: 60px 0; }
.ha-founders-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: center; }
.ha-founders .ph { aspect-ratio: 3 / 2; overflow: hidden; background: #e6e0d4; }
.ha-founders .ph img { width: 100%; height: 100%; object-fit: cover; }
.ha-founders .ha-title { margin: 0 0 22px; }
.ha-founders p { font-family: var(--serif); font-weight: 300; font-size: 1.35rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 30px; }
.ha-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.ha-rule-label { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.ha-rule-label .ha-label { flex: none; }
.ha-fade-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), var(--hair) 60%, transparent); }
.ha-feature[hidden] { display: none; }
.ha-feature { transition: opacity .22s ease; }
.ha-feature.changing { opacity: 0.25; }
.ha-feature-photos { display: grid; grid-template-columns: 2.62fr 1fr; gap: 14px; height: min(44vw, 600px); }
.ha-feature-photos a { position: relative; display: block; overflow: hidden; background: #e6e0d4; }
.ha-feature-photos img { width: 100%; height: 100%; object-fit: cover; }
/* Hover: a soft veil with "View property" so it's clear the photos open the home */
.ha-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 15, 0.38); color: #fff; opacity: 0; transition: opacity .3s ease;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; pointer-events: none;
}
a:hover .ha-hover, a:focus-visible .ha-hover { opacity: 1; }
@media (hover: none) { .ha-hover { display: none; } }
.ha-feature-photos .side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.ha-stamp {
  position: absolute; top: 20px; left: 20px; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; padding: 8px 14px;
}
.ha-feature-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding-top: 22px; }
.ha-feature-caption a { color: var(--ink); text-decoration: none; }
.ha-feature-caption .ha-area-line { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink); }
.ha-feature-caption .ha-meta { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.ha-feature-caption .ha-meta .dash { margin: 0 14px; }
.ha-controls { display: flex; align-items: center; gap: 18px; flex: none; }
.ha-controls[hidden] { display: none; }
.ha-controls .ha-arrow { color: var(--bronze); }
.ha-controls .ha-arrow:hover { color: var(--ink); }
.ha-status { text-align: center; color: var(--ink-faint); font-style: italic; font-family: var(--serif); font-size: 1.2rem; padding: 40px 0; }
.ha-intro {
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); font-style: italic; font-weight: 300; line-height: 1.45;
  color: var(--ink-soft); max-width: 30em; text-align: center; margin: 0 auto 56px;
}
.ha-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ha-cards .property-card .body { background: transparent; padding: 20px 2px 0; }
.ha-featured .ha-center { margin-top: 64px; }
.ha-cards .property-card, .ha-cards .property-card:hover { transform: none !important; transition: none; }
.ha-cards .property-card .photo::after {
  content: "View property"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 15, 0.42); color: #fff; opacity: 0; transition: opacity .3s ease;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; pointer-events: none;
}
.ha-cards .property-card:hover .photo::after, .ha-cards .property-card:focus-visible .photo::after { opacity: 1; }
@media (hover: none) { .ha-cards .property-card .photo::after { display: none; } }

/* ---------- 3. Why it pays to go private ---------- */
.ha-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 96px; }
.ha-stat { text-align: center; padding: 30px 16px; position: relative; }
.ha-stat + .ha-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--hair) 25%, var(--hair) 75%, transparent); }
.ha-stat .n { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: 1; color: var(--ink); }
.ha-stat .l { display: block; margin-top: 16px; font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); line-height: 1.6; }
.ha-reasons { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; }
.ha-reasons li { display: grid; grid-template-columns: 58px 1fr; align-items: baseline; padding: 30px 0; border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--hair) 12%, var(--hair) 88%, transparent) 1; }
.ha-reasons .rn { font-family: var(--serif); font-style: italic; color: var(--bronze); font-size: 1.1rem; letter-spacing: 0.06em; }
.ha-reasons p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: 1.45rem; line-height: 1.38; color: var(--ink); }
.ha-private { padding-bottom: 56px; }
.ha-areas { padding-top: 56px; padding-bottom: 60px; border-top: none !important; } /* no divider between "why go private" and key areas */

/* ---------- 4. Key areas ---------- */
.ha-areas .ha-rule-label { margin-bottom: 26px; }
.ha-area-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ha-area { position: relative; text-decoration: none; color: var(--ink); }
.ha-area .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e6e0d4; }
.ha-area .ph img { width: 100%; height: 100%; object-fit: cover; }
.ha-area .ph.noimg { background: linear-gradient(160deg, #3a342b 0%, #1c1a17 100%) center / cover; }
.ha-area .ph.noimg::after { content: ""; position: absolute; inset: 0; background: url("../assets/tpr-mark-white.png") center / 54px auto no-repeat; opacity: 0.35; }
.ha-area .cap { margin: 18px 0 0; text-align: center; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; }
.ha-dots { display: none; }

/* ---------- 5. Reputation ---------- */
.ha-reputation { text-align: center; padding-top: 60px; }
.ha-reputation .ha-label { margin-bottom: 40px; font-size: 0.84rem; }
.ha-stars { color: var(--bronze); letter-spacing: 0.4em; font-size: 0.9rem; margin: 0 0 30px; }
.ha-blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.45; color: var(--ink); }
.ha-blockquote p { margin: 0 0 0.8em; }
.ha-blockquote p:first-child::before { content: "\201C"; }
.ha-blockquote p:last-child { margin-bottom: 0; }
.ha-blockquote p:last-child::after { content: "\201D"; }
.ha-blockquote.clamped { max-height: 8.7em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
.ha-more { background: none; border: none; cursor: pointer; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--bronze-deep); margin-top: 14px; padding: 4px; }
.ha-more[hidden] { display: none; }
.ha-who { margin: 30px 0 0; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink); }
.ha-who a { color: inherit; text-decoration: none; }
.ha-who span { display: block; margin-top: 8px; color: var(--ink-faint); letter-spacing: 0.22em; font-size: 0.64rem; }
.ha-quote-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 36px; }
.ha-quote-nav[hidden] { display: none; }
.ha-reputation .ha-link { margin-top: 48px; }

/* ---------- 6. Valuation band ---------- */
.ha-valuation { background: #141210; color: #f3efe6; text-align: center; padding: 110px 0 104px !important; }
.ha-valuation .ha-val-mark { width: 34px; height: auto; margin: 0 auto 30px; opacity: 0.8; transform: translateX(5.9%); }
.ha-valuation .ha-label { color: rgba(243,239,230,0.6); }
.ha-valuation h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: 1; margin: 22px 0 26px; color: #f3efe6; }
.ha-valuation h2 a { color: inherit; text-decoration: none; transition: color .3s; }
.ha-valuation h2 a:hover { color: #c9ad82; }
.ha-val-sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.2rem; color: rgba(243,239,230,0.72); max-width: 30em; margin: 0 auto 38px; }
.home-atelier .site-footer { border-top: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .ha-wrap { padding: 0 32px; }
  .ha-cards { gap: 20px; }
  .ha-reasons { column-gap: 56px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .ha-section { padding: 76px 0; }
  .ha-wrap { padding: 0 22px; }

  /* Header: small wordmark, thin two-line menu icon */
  .home-atelier .nav-toggle {
    font-size: 0; width: 30px; height: 30px; top: 18px; right: 18px;
    background: linear-gradient(currentColor, currentColor) center 11px / 24px 1px no-repeat,
                linear-gradient(currentColor, currentColor) center 19px / 24px 1px no-repeat;
  }
  .home-atelier .site-header.overlay .main-nav.open { padding: 22px; gap: 16px; }
  .home-atelier .video-hero .hero-tagline { font-size: min(1.95rem, 7.2vw); column-gap: 0.22em; }
  .home-atelier .video-hero .hero-tagline span { white-space: nowrap; }
  .ha-reputation .ha-link { font-size: 0.66rem; letter-spacing: 0.2em; }
  .home-atelier .video-hero .hero-mark { width: 44px; margin-top: 26px; }

  /* Featured: main photo, two beneath; swipe between homes; cards swipe sideways */
  .ha-featured { padding-top: 64px; padding-bottom: 38px; }
  .ha-private { padding-top: 38px; }
  .ha-founders { padding: 38px 0; }
  .ha-founders-grid { grid-template-columns: 1fr; gap: 28px; }
  .ha-founders p { font-size: 1.2rem; }
  .ha-rule-label { margin-bottom: 20px; }
  .ha-feature-photos { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 8px; }
  .ha-feature-photos .main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .ha-feature-photos .side { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ha-feature-photos .sub { aspect-ratio: 3 / 2; }
  .ha-stamp { top: 14px; left: 14px; }
  .ha-feature-bar { flex-direction: column; gap: 16px; padding-top: 18px; }
  .ha-feature-caption .ha-meta span { display: block; line-height: 2; }
  .ha-feature-caption .ha-meta .dash { display: none; }
  .ha-controls { align-self: stretch; justify-content: space-between; }
  .ha-intro { margin: 0 auto 36px; font-size: 1.25rem; }
  .ha-cards {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -22px; padding: 0 22px 4px; scroll-padding: 0 22px;
  }
  .ha-cards::-webkit-scrollbar { display: none; }
  .ha-cards .property-card { flex: 0 0 78vw; scroll-snap-align: start; }
  .ha-cards .property-card:hover { transform: none; }
  .ha-featured .ha-center { margin-top: 44px; }

  /* Go private */
  .ha-display { font-size: 8.4vw; margin-bottom: 40px; }
  .ha-stats { grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
  .ha-stat { padding: 30px 10px 28px; }
  .ha-stat { padding: 22px 10px; }
  .ha-stat:nth-child(3)::before { display: none; }
  .ha-stat .n { font-size: 1.75rem; } /* secondary to the heading */
  .ha-stat .l { font-size: 0.6rem; letter-spacing: 0.2em; }
  .ha-reasons { grid-template-columns: 1fr; }
  .ha-reasons li { grid-template-columns: 44px 1fr; padding: 22px 0; }
  .ha-reasons p { font-size: 1.24rem; }
  .ha-private { padding-bottom: 38px; }
  .ha-areas { padding-top: 38px; padding-bottom: 38px; }
  .ha-reputation { padding-top: 38px; }

  /* Key areas: swipe cards with a peek of the next */
  .ha-area-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ha-area-row::-webkit-scrollbar { display: none; }
  .ha-area { flex: 0 0 100%; scroll-snap-align: start; }
  .ha-area .cap { font-size: 0.68rem; margin-top: 16px; }
  .ha-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
  .ha-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.2; transition: opacity .25s; }
  .ha-dots span.on { opacity: 0.75; }

  /* Reputation */
  .ha-blockquote { font-size: 1.3rem; }
  .ha-blockquote.clamped { max-height: 11.6em; }

  /* Valuation */
  .ha-valuation { padding: 80px 0 76px !important; }
  .ha-valuation h2 { font-size: 2.9rem; }
  .ha-val-sub { font-size: 1.1rem; }
}

/* ---------- Area pages (e.g. Blackheath & Greenwich) ---------- */
.area-intro { padding: 72px 0 40px; text-align: center; }
.area-intro h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; margin: 16px 0 26px; }
.area-intro .area-copy { font-family: var(--serif); font-weight: 300; font-size: 1.3rem; line-height: 1.6; color: var(--ink-soft); margin: 0 auto 56px; max-width: 42em; }
.area-intro .ha-stats { margin-bottom: 0; }
.ha-stats.three { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .area-intro { padding: 48px 0 24px; }
  .area-intro .area-copy { font-size: 1.15rem; margin-bottom: 36px; }
  .ha-stats.three { grid-template-columns: repeat(3, 1fr); }
  .ha-stats.three .ha-stat { padding: 18px 6px; }
  .ha-stats.three .ha-stat:nth-child(3)::before { display: block; }
  .ha-stats.three .ha-stat .n { font-size: 1.6rem; }
  .ha-stats.three .ha-stat .l { font-size: 0.56rem; letter-spacing: 0.14em; }
}
