/* Brookline Property Group: institutional, editorial, restrained. */

:root {
  --ink: #0B1530;          /* deep navy */
  --ink-2: #16234A;
  --paper: #F7F4EE;        /* warm off-white */
  --stone: #EEE8DE;
  --white: #FFFFFF;
  --text: #1B2440;
  --muted: #565F75;
  --line: #DCD4C6;
  --line-dark: rgba(247, 244, 238, 0.16);
  --brass: #B08D57;
  --brass-deep: #7D6235;   /* brass for text on light backgrounds (AA) */
  --brass-light: #D9C29A;  /* brass for text on navy (AA) */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --band: clamp(72px, 10vw, 136px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.12; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * clamp(20px, 5vw, 48px), var(--wrap)); margin-inline: auto; }
.wrap-narrow { --wrap: 760px; }
.ic { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .74rem; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-light); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { border-color: rgba(247,244,238,.5); color: var(--paper); }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(247,244,238,.08); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); text-decoration: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,244,238,.97); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247,244,238,.88); backdrop-filter: blur(12px); } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.wordmark { font-family: var(--serif); font-size: 1.75rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; line-height: 1; margin: 0; }
.wordmark .dot { color: var(--brass); }
.wordmark-light { color: var(--paper); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.menu-btn { display: none; }
@media (max-width: 1060px) {
  .js .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
  .menu-btn .ic { width: 22px; height: 22px; }
  .menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
  .menu-btn[aria-expanded="true"] .ic-close { display: block; }
  .no-js .header-row { flex-wrap: wrap; padding-block: 14px; }
  .no-js .site-nav, .no-js .site-nav ul { flex-wrap: wrap; gap: 10px 18px; }
  .js .site-nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px clamp(20px, 5vw, 48px) 24px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 16px 2px; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .js .site-nav .btn { margin-top: 18px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); padding-block: clamp(88px, 13vw, 168px) clamp(64px, 9vw, 112px); overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.2); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 38%, rgba(11,21,48,.72) 62%, rgba(11,21,48,.25) 100%); }
.hero-copy { max-width: 720px; }
@media (max-width: 900px) { .hero-media::after { background: linear-gradient(180deg, rgba(11,21,48,.82), var(--ink)); } }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: end; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--brass); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6.4vw, 5.4rem); letter-spacing: -.02em; line-height: 1.02; }
.hero h1 em { color: var(--brass-light); }
.lede { margin-top: 28px; max-width: 34em; font-size: 1.12rem; color: rgba(247,244,238,.82); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ledger { border-top: 1px solid var(--brass); }
.ledger-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.ledger dt { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.ledger dt span { display: block; margin-top: 4px; font-size: .86rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(247,244,238,.7); }
.ledger dd { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; color: var(--brass-light); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.band { padding-block: var(--band); }
.band-stone { background: var(--stone); }
.band-ink { background: var(--ink); color: var(--paper); }
.page-top { padding-top: clamp(56px, 8vw, 104px); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h1, .sec-head h2 { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.015em; color: var(--ink); }
.sec-head.light h2 { color: var(--paper); }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); }
.kicker a { color: inherit; }
.light .kicker, .band-ink .kicker { color: var(--brass-light); }
.kicker .num { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; padding-right: 14px; border-right: 1px solid currentColor; }
.intro { margin-top: 20px; font-size: 1.12rem; color: var(--muted); }
.light .intro { color: rgba(247,244,238,.78); }
.sec-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-row .sec-head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.prose p + p { margin-top: 1.1em; }
.prose { color: var(--muted); }
.prose-light { color: rgba(247,244,238,.82); }

/* ---------- About ---------- */
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-figure figcaption { margin-top: 12px; font-size: .82rem; letter-spacing: .06em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Strategy & principles ---------- */
.sectors, .principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.principles { grid-template-columns: repeat(3, 1fr); }
.sectors li, .principles li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.sectors li + li, .principles li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.sector-num { display: block; font-family: var(--serif); font-size: 1rem; color: var(--brass-deep); margin-bottom: 22px; }
.sectors h3, .principles h3 { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); margin-bottom: 12px; }
.sectors p, .principles p { color: var(--muted); font-size: .98rem; }
@media (max-width: 1000px) {
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sectors li:nth-child(3) { padding-left: 0; border-left: 0; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li { padding-left: 0 !important; border-left: 0 !important; }
  .principles li:nth-child(even) { padding-left: 28px !important; border-left: 1px solid var(--line) !important; }
}
@media (max-width: 620px) {
  .sectors, .principles { grid-template-columns: 1fr; }
  .sectors li, .principles li, .principles li:nth-child(even) { padding-left: 0 !important; border-left: 0 !important; }
}

/* ---------- Platform & fund ---------- */
.facts { margin-top: 40px; border-top: 1px solid var(--line-dark); }
.facts div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.facts dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); padding-top: 3px; }
.facts dd { color: var(--paper); }
.fund { background: var(--paper); color: var(--text); padding: clamp(28px, 4vw, 48px); border-top: 4px solid var(--brass); }
.fund-label { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); }
.fund h3 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--ink); margin: 12px 0 18px; }
.fund > p { color: var(--muted); }
.terms { margin-top: 28px; border-top: 1px solid var(--ink); }
.terms div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.terms dt { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.terms dd { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-align: right; }
.fund-note { margin-top: 20px; font-size: .86rem; color: var(--muted); border-left: 2px solid var(--brass); padding-left: 12px; }
.fund .btn-ghost-light { border-color: var(--ink); color: var(--ink); }
.fund .btn-ghost-light:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Portfolio ---------- */
.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .assets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .assets { grid-template-columns: 1fr; } }
.asset a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.asset a:hover { border-color: var(--ink); }
.asset-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.asset-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.asset-body h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.asset-loc { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.asset-body > p:not(.status):not(.asset-loc) { font-size: .93rem; color: var(--muted); flex: 1; }
.asset .link { margin-top: 8px; }
.status { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; }
.status-done { background: var(--ink); color: var(--paper); }
.status-dev { border: 1px solid var(--brass-deep); color: var(--brass-deep); }
.markets { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); border-top: 1px solid var(--ink); padding-top: 36px; }
@media (max-width: 900px) { .markets { grid-template-columns: 1fr; } }
.markets-head h3 { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); margin-bottom: 14px; }
.markets-head p { color: var(--muted); }
.market { display: grid; grid-template-columns: 150px 150px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.market-name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.market-status { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.market-completed .market-status { color: var(--ink); }
.market-under-development .market-status { color: var(--brass-deep); }
.market-detail { font-size: .92rem; color: var(--muted); }
@media (max-width: 620px) { .market { grid-template-columns: 1fr 1fr; } .market-detail { grid-column: 1 / -1; } }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr; } }
.person { display: grid; grid-template-columns: 168px 1fr; gap: 28px; align-items: start; }
/* Same-size square headshots. Anchored at the top so heads and faces are
   never cut; taller portraits only lose some of the lower body. */
.person-photo img { width: 168px; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 0; filter: grayscale(1); }
.person h3 { font-family: var(--serif); font-size: 1.75rem; color: var(--ink); }
.role { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); margin: 6px 0 16px; }
.person .prose { font-size: .97rem; }
.person .link { margin-top: 14px; }
@media (max-width: 520px) { .person { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }
.quotes figure { border-top: 1px solid var(--brass); padding-top: 28px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quotes blockquote { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--paper); }
.quotes blockquote p + p { margin-top: .8em; }
.quotes blockquote p:first-child::before { content: "“"; color: var(--brass-light); }
.quotes blockquote p:last-child::after { content: "”"; color: var(--brass-light); }
.quotes figcaption strong { display: block; font-weight: 600; color: var(--paper); }
.quotes figcaption span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); }

/* ---------- Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 960px) { .articles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .articles { grid-template-columns: 1fr; } }
.article-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: inherit; }
.article-media { overflow: hidden; background: var(--stone); }
.article-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.article-card a:hover img { transform: scale(1.03); }
.article-date { margin-top: 8px; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); }
.article-card h2, .article-card h3 { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.article-card p:not(.article-date) { font-size: .95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .link { margin-top: auto; padding-top: 6px; }
.article h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.015em; color: var(--ink); }
.article-meta { margin-top: 18px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-hero { margin-block: clamp(32px, 5vw, 56px); }
.article-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.article-body { color: var(--text); font-size: 1.08rem; }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--serif); color: var(--ink); margin: 1.6em 0 .5em; }
.article-body h2 { font-size: 1.9rem; }
.article-body h3 { font-size: 1.45rem; }
.article-body h4 { font-size: 1.2rem; }
.article-body ul, .article-body ol { margin: 1em 0; padding-left: 1.3em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .4em; }
.article-body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--brass); font-family: var(--serif); font-size: 1.25rem; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-note { margin-top: 48px; padding: 18px 20px; background: var(--stone); font-size: .88rem; color: var(--muted); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; border-top: 1px solid var(--ink); padding-top: 24px; }
.article-nav a { text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.article-nav a span { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 6px; }
.article-nav .next { text-align: right; }

/* ---------- Contact ---------- */
.contact-list { border-top: 1px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
@media (max-width: 560px) { .contact-list div { grid-template-columns: 1fr; gap: 4px; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 6px; }
.field-wide, .form .btn, .form .fine { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .06em; }
.req { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #A39A8A; border-radius: 2px; background: var(--white); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--ink); }
.form .btn { justify-self: start; }
.fine { font-size: .84rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- Legal & thanks ---------- */
.legal h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--ink); margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin: 1.8em 0 .6em; }
.legal .subtitle { font-size: 1.1rem; margin-bottom: 1.5em; }
.legal p { margin-top: 1em; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-top: 1em; }
.thanks h1 { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4rem); color: var(--ink); }
.thanks .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,244,238,.78); padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand .wordmark { margin-bottom: 16px; }
.footer-brand p + p { margin-top: 10px; }
.f-head { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.footer-legal { padding-block: 28px 40px; font-size: .82rem; color: rgba(247,244,238,.66); }
.footer-legal p + p { margin-top: 12px; }
.footer-legal strong { color: rgba(247,244,238,.85); font-weight: 600; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { .site-header, .hero-media, .form, .menu-btn { display: none !important; } body { background: #fff; } }
