/* NewCastle Development Group — test site
   Layout concept: photo-led, full-bleed bands alternating paper and deep teal; content on a 1200px grid.
   Brand tokens pulled from the 2026 investor presentation theme (deep teal + brass, Jost). */
:root {
  --teal: #003D4C;        /* primary brand */
  --teal-deep: #002833;   /* footer / overlays */
  --teal-soft: #4F858E;   /* secondary brand */
  --brass: #C9D2D5;       /* monochrome accent on dark: eyebrows, rules, labels (light cool gray) */
  --brass-dark: #4E5E64;  /* monochrome accent on light backgrounds (slate gray) */
  --paper: #F5F6F3;       /* light band */
  --white: #FFFFFF;
  --ink: #17262C;         /* body text */
  --muted: #5C6B70;       /* secondary text */
  --line: #D9DEDB;

  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5vw, 3.6rem);
  --step-5: clamp(2.8rem, 7vw, 5.2rem);
  --wrap: 1200px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--teal); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band--paper { background: var(--paper); }
.band--teal { background: var(--teal); color: var(--white); }

.eyebrow {
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-dark); display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.band--teal .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brass); }
.section-title { font-size: var(--step-4); font-weight: 300; margin-top: 18px; max-width: 22ch; }
.lead { font-size: var(--step-1); font-weight: 300; color: var(--muted); max-width: 60ch; }
.band--teal .lead { color: rgba(255,255,255,0.78); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px;
  font: 500 var(--step--1)/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--brass); color: var(--white); background: var(--brass); transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--brass); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn--dark { background: var(--teal); border-color: var(--teal); }
.btn--dark:hover { background: transparent; color: var(--teal); }
.link-arrow { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--brass-dark); border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.band--teal .link-arrow { color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--teal); color: var(--white); transition: background .3s, box-shadow .3s;
}
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header--overlay.is-scrolled, .site-header.nav-open { background: var(--teal); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-size: 1.6rem; font-weight: 500; letter-spacing: 0.01em; }
.brand__sub { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.42em; color: var(--brass); margin-top: 6px; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding-block: 8px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav a:not(.nav-login) + .nav-login { margin-left: clamp(18px, 2.4vw, 34px); } /* double gap between site links and the login links */
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--teal); padding: 12px var(--gutter-r) 28px var(--gutter-l); border-top: 1px solid rgba(255,255,255,0.1); }
  .site-header.nav-open .nav { display: flex; }
  .nav a:not(.nav-login) + .nav-login { margin-left: 0; margin-top: 12px; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--teal); }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,40,51,0.72) 0%, rgba(0,40,51,0.35) 45%, rgba(0,40,51,0) 75%),
    linear-gradient(180deg, rgba(0,40,51,0.55) 0%, rgba(0,40,51,0.05) 30%, rgba(0,40,51,0.15) 55%, rgba(0,40,51,0.85) 100%); }
.hero__content { position: relative; padding-block: 180px clamp(56px, 8vw, 96px); width: 100%; }
.hero h1 { font-size: var(--step-5); font-weight: 300; max-width: 16ch; margin-top: 0; }
.hero h1 em { font-style: normal; color: var(--brass); }
.hero p { font-size: var(--step-1); font-weight: 300; max-width: 52ch; margin-top: 24px; color: rgba(255,255,255,0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__media { animation: drift 30s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
}

/* Interior page hero */
.page-hero { position: relative; color: var(--white); background: var(--teal); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; }
.page-hero .wrap { position: relative; padding-block: clamp(80px, 11vw, 140px) clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: var(--step-4); font-weight: 300; margin-top: 18px; max-width: 20ch; }
.page-hero p { font-size: var(--step-1); font-weight: 300; max-width: 58ch; margin-top: 20px; color: rgba(255,255,255,0.85); }

/* ---------- Stats bar ---------- */
.stats { background: var(--teal-deep); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 34px 20px 30px; border-left: 1px solid rgba(255,255,255,0.1); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; }
  .stat:last-child { grid-column: 1 / -1; }
}

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split__text { display: grid; gap: 22px; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__caption { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Strategy verticals ---------- */
.verticals { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vertical { background: var(--white); display: flex; flex-direction: column; }
.vertical img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.vertical__body { padding: 32px; display: grid; gap: 16px; }
.vertical__kicker { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-dark); font-weight: 500; }
.vertical h3 { font-size: var(--step-3); font-weight: 300; }
.vertical ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vertical li { padding-left: 20px; position: relative; color: var(--muted); }
.vertical li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--brass); }
.case { display: flex; flex-wrap: wrap; gap: 6px 24px; border-top: 1px solid var(--line); padding-top: 16px; font-size: var(--step--1); color: var(--muted); }
.case strong { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .verticals { grid-template-columns: 1fr; } }

/* ---------- Platform ---------- */
.platform { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.18); }
.pillar { padding: 34px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid rgba(255,255,255,0.18); }
.pillar__label { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 500; }
.pillar h3 { font-size: var(--step-2); font-weight: 300; }
.pillar p { color: rgba(255,255,255,0.75); }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.tool { border: 1px solid rgba(255,255,255,0.18); padding: 26px 28px; display: grid; gap: 8px; }
.tool__name { font-size: var(--step-1); font-weight: 500; }
.tool p { color: rgba(255,255,255,0.72); font-size: 0.98rem; }
@media (max-width: 860px) {
  .platform, .tools { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
  .platform { border-top: 0; }
}

/* ---------- Community grid (photo-led) ---------- */
.communities { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.community { position: relative; overflow: hidden; background: var(--teal); color: var(--white); min-height: 280px; display: flex; align-items: flex-end; text-decoration: none; grid-column: span 4; }
.community--wide { grid-column: span 8; min-height: 420px; }
.community--half { grid-column: span 6; min-height: 340px; }
.community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,40,51,0) 40%, rgba(0,40,51,0.85) 100%); }
.community:hover img { transform: scale(1.04); }
.community__body { position: relative; z-index: 1; padding: 24px 26px; display: grid; gap: 4px; }
.community__name { font-size: var(--step-2); font-weight: 300; }
.community__meta { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.community--logo { background: var(--paper); color: var(--ink); align-items: stretch; flex-direction: column; justify-content: space-between; }
.community--logo::after { display: none; }
.community--logo .logo-slot { flex: 1; display: grid; place-items: center; padding: 28px 32px 0; }
.community--logo .logo-slot img { position: static; width: auto; height: auto; max-height: 120px; max-width: 80%; object-fit: contain; }
.community--logo:hover .logo-slot img { transform: none; }
.community--logo .community__meta { color: var(--brass-dark); }
@media (max-width: 860px) { .community, .community--wide, .community--half { grid-column: 1 / -1; min-height: 300px; } }

/* ---------- Markets ---------- */
.markets { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.markets > * { min-width: 0; }
.market-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.market-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.market-list .m-name { font-size: var(--step-1); }
.market-list .m-state { font-size: var(--step--1); color: var(--muted); letter-spacing: 0.08em; }
.market-list .m-units { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; min-width: 7ch; }
.market-list .m-units small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.map-card { background: var(--teal); padding: 24px; }
.map-card svg { width: 100%; height: auto; display: block; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255,255,255,0.8); font-size: 0.8rem; margin-top: 12px; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 860px) { .markets { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.person { display: grid; gap: 12px; align-content: start; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; background: var(--paper); filter: saturate(0.9); }
.person__name { font-size: var(--step-1); font-weight: 400; margin-top: 6px; }
.person__title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-dark); }
.person__bio { color: var(--muted); font-size: 0.96rem; }
.person details summary { cursor: pointer; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); font-weight: 500; list-style: none; }
.person details summary::-webkit-details-marker { display: none; }
.person details summary::after { content: " +"; }
.person details[open] summary::after { content: " –"; }
.person details p { margin-top: 10px; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { position: relative; color: var(--white); background: var(--teal); overflow: hidden; }
.cta__media { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; }
.cta .wrap { position: relative; padding-block: clamp(72px, 10vw, 120px); display: grid; gap: 24px; justify-items: start; }
.cta h2 { font-size: var(--step-4); font-weight: 300; max-width: 20ch; }

/* ---------- Tables (portfolio) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter button { font: 500 0.78rem/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase; padding: 11px 18px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--teal); }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 640px; }
th { text-align: left; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 14px 12px; border-bottom: 1px solid var(--line); }
td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .t-name { font-weight: 500; }
.pill { display: inline-block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border: 1px solid currentColor; white-space: nowrap; }
.pill--stable { color: var(--teal-soft); }
.pill--lease { color: var(--brass-dark); }
.pill--build { color: #9A5B45; }
.pill--pipe { color: var(--muted); }
.table-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }

/* ---------- Cards (investors) ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason { padding: 32px 28px 32px 0; display: grid; gap: 12px; align-content: start; border-bottom: 1px solid var(--line); }
.reason:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.reason h3 { font-size: var(--step-2); font-weight: 300; }
.reason p { color: var(--muted); }
.reason__fig { font-size: var(--step-3); font-weight: 300; color: var(--teal); }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } .reason, .reason:not(:nth-child(3n+1)) { padding: 26px 0; border-left: 0; } }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.way { border: 1px solid rgba(255,255,255,0.2); padding: 32px 28px; display: grid; gap: 14px; align-content: start; }
.way h3 { font-size: var(--step-2); font-weight: 300; }
.way p { color: rgba(255,255,255,0.75); }
.way__today { font-size: 0.9rem; color: var(--brass); border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }
.portal { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: var(--paper); padding: clamp(28px, 5vw, 56px); }
.portal > * { min-width: 0; }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; } }
.disclaimer { font-size: 0.8rem; color: var(--muted); line-height: 1.6; max-width: 90ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 80px); }
.contact-grid > * { min-width: 0; }
.contacts { display: grid; gap: 26px; }
.contact-person { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; }
.contact-person a { text-decoration: none; color: var(--teal); overflow-wrap: anywhere; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; padding: 13px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-status { font-size: 0.92rem; color: var(--teal); }
.form-status a { color: inherit; text-decoration: underline; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: rgba(255,255,255,0.75); font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 72px 48px; }
.footer-grid > * { min-width: 0; }
.footer-grid h4 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Draft flag for items still to confirm */
.tbd { background: rgba(0,61,76,0.08); outline: 1px dashed var(--muted); padding: 0 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea { min-width: 0; width: 100%; }

/* ---------- About: banner + prose ---------- */
.banner { height: clamp(260px, 42vw, 480px); background-color: var(--teal); background-size: cover; background-position: center 60%; }
.prose { max-width: calc(760px + 40px); display: grid; gap: 24px; }
.prose h1 { font-size: var(--step-4); font-weight: 300; color: var(--teal); }
.prose .lead { color: var(--ink); }
.prose p { max-width: 68ch; }
.prose a { color: var(--brass-dark); }

/* ---------- Team: text bios ---------- */
.bios { border-top: 1px solid var(--line); }
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 16px 48px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.bio__name { font-size: var(--step-1); font-weight: 400; color: var(--ink); }
.bio__head { display: grid; gap: 6px; align-content: start; }
.bio__text { color: var(--muted); max-width: 72ch; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } }
.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.roster__item { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
@media (max-width: 760px) { .roster { grid-template-columns: 1fr; } }

/* Website column */
.site-cell { white-space: nowrap; position: relative; }
.site-link { color: var(--teal); text-decoration: none; font-weight: 500; font-size: 0.9rem; border-bottom: 1px solid var(--brass); padding-bottom: 2px; }
.site-link:hover { color: var(--brass-dark); }
.site-none { color: var(--muted); font-size: 0.85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Interior hero with a full-strength photo (Portfolio) */
.page-hero--photo .page-hero__media { opacity: 1; background-position: center 30%; }
.page-hero--photo .page-hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,40,51,0.75) 0%, rgba(0,40,51,0.35) 50%, rgba(0,40,51,0.05) 85%); }
.page-hero--photo .wrap { padding-block: clamp(120px, 16vw, 220px) clamp(64px, 8vw, 104px); }

/* Centered home hero, headline on two lines */
.hero__content--center { display: grid; justify-items: center; text-align: center; }
.hero__content--center h1 { max-width: none; font-size: clamp(2.2rem, 4.1vw, 3.9rem); line-height: 1.15; }
.hero__content--center p { margin-inline: auto; }
.hero__content--center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero:has(.hero__content--center) .hero__media::after {
  background: linear-gradient(180deg, rgba(0,40,51,0.55) 0%, rgba(0,40,51,0.35) 40%, rgba(0,40,51,0.45) 70%, rgba(0,40,51,0.85) 100%); }
@media (max-width: 900px) { .br-wide { display: none; } }
.hero:has(.hero__content--center) { align-items: center; }
.hero__content--center { padding-block: 150px 110px; }

/* Stats ribbon: center each figure and its label within its column */
.stat, .stat:first-child { text-align: center; padding-inline: 16px; }
.stat__label { margin-inline: auto; max-width: 24ch; text-wrap: balance; }
@media (max-width: 900px) { .stat, .stat:first-child { padding-inline: 12px; } }
/* No dividers between the stats */
.stat, .stat:first-child { border-left: 0; border-top: 0; }

/* Monochrome palette: white buttons on dark, no colored highlight words */
.btn { background: var(--white); border-color: var(--white); color: var(--teal); }
.btn:hover { background: transparent; color: var(--white); }
.btn--dark { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--dark:hover { background: transparent; color: var(--teal); }
.hero h1 em { color: inherit; font-style: normal; font-weight: 400; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,0.8); }
.page-hero--contact .page-hero__media { background-position: center 62%; }
.page-hero--contact .page-hero__media::after { background: linear-gradient(90deg, rgba(0,40,51,0.85) 0%, rgba(0,40,51,0.55) 45%, rgba(0,40,51,0.1) 80%); }

/* About banner with statement: dark on the left fading to the clear photo */
.banner--statement { position: relative; display: flex; align-items: flex-end; height: clamp(360px, 46vw, 560px); }
.banner--statement::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,40,51,0.92) 0%, rgba(0,40,51,0.7) 35%, rgba(0,40,51,0.2) 65%, rgba(0,40,51,0) 85%); }
.banner__inner { position: relative; width: 100%; padding-block: clamp(40px, 6vw, 72px); }
.banner__statement { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.7rem); font-weight: 300; line-height: 1.2; max-width: 22ch; text-wrap: balance; }
@media (max-width: 700px) { .banner--statement::before { background: linear-gradient(180deg, rgba(0,40,51,0.15) 0%, rgba(0,40,51,0.85) 100%); } }

/* Interior page headers: thin bar + page name (eyebrow), consistent on About / Portfolio / Contact */
.page-hero h1.eyebrow, .banner--statement .eyebrow { color: var(--white); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.22em; margin: 0; max-width: none; }
.page-hero h1.eyebrow + p { margin-top: 18px; }
.banner--statement .eyebrow { margin-bottom: 18px; }
/* About banner statement matches the Portfolio / Contact banner text size */
.banner__statement { font-size: var(--step-1); font-weight: 300; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 58ch; }
.banner--statement { align-items: center; }

/* About page: About Us + Our Team use the full site column, left-aligned (same as Home / Portfolio) */
.prose { max-width: var(--wrap); }
.prose p { max-width: none; }
.bio { grid-template-columns: 1fr; gap: 10px; }
.bio__text { max-width: none; }
.prose h1 { color: var(--ink); }
/* About page body text justified */
.prose p, .bio__text { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }

/* Featured communities: 7 tiles (3 across, then 4 across) */
.featured { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.ftile { position: relative; overflow: hidden; grid-column: span 4; aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; background: var(--teal); display: block; }
.ftile:nth-child(n+4) { grid-column: span 3; }
.ftile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ftile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,40,51,0) 45%, rgba(0,40,51,0.85) 100%); }
.ftile:hover img { transform: scale(1.04); }
.ftile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 20px; display: grid; gap: 4px; }
.ftile .community__name { font-size: var(--step-1); }
@media (max-width: 860px) { .ftile, .ftile:nth-child(n+4) { grid-column: span 6; } }
@media (max-width: 520px) { .ftile, .ftile:nth-child(n+4) { grid-column: 1 / -1; } }

/* Community photo gallery: 4 x 4 */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery__item { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .2s; }
.gallery__item:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-link { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.6); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,20,26,0.94); display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-width: min(1600px, 100%); max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font: 300 2.4rem/1 var(--font); cursor: pointer; padding: 12px 18px; }
.lightbox .lb-close { top: max(12px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); font-size: 2rem; }
.lightbox .lb-prev { left: max(8px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: max(8px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.14em; }
.ftile .community__meta { font-size: 0.7rem; letter-spacing: 0.1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftile::after { background: linear-gradient(180deg, rgba(0,40,51,0) 40%, rgba(0,40,51,0.9) 100%); }
.lightbox img { max-width: calc(100% - 110px); }
@media (max-width: 600px) { .lightbox img { max-width: 100%; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 4px; transform: none; } }

/* Back button on community pages */
.back-row { margin: -24px 0 24px; }
.btn-back { display: inline-block; padding: 10px 20px; border: 1px solid var(--teal); color: var(--teal); text-decoration: none; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; transition: background .2s, color .2s; }
.btn-back:hover { background: var(--teal); color: var(--white); }

/* Tighter gap between Who We Are and Featured Communities */
#who { padding-bottom: clamp(28px, 3.5vw, 48px); }
#featured { padding-top: clamp(28px, 3.5vw, 48px); }
#featured .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

/* Hero fills the window minus the stats ribbon, so the first screen ends exactly at the ribbon on any monitor height */
.hero:has(.hero__content--center) { min-height: clamp(480px, calc(100svh - 150px), 1400px); }
.hero__content--center { padding-block: 120px 56px; }
.stat { padding: 28px 20px 26px; }

/* Official NewCastle Development Group logo (reverse/white version on teal) */
.brand__logo { display: block; height: 64px; width: auto; margin-left: -8px; }
.footer-brand .brand__logo { height: 64px; margin-bottom: 8px; }
@media (max-width: 760px) { .brand__logo { height: 44px; } }

/* Status column: plain text, same as the other table cells (no box, caps or color) */
.pill, .pill--stable, .pill--lease, .pill--build, .pill--pipe { display: inline; font-size: inherit; letter-spacing: normal; text-transform: none; padding: 0; border: 0; color: inherit; white-space: normal; }
td.num + td, th.num + th { padding-left: 32px; }

/* Footer: single-spaced address and tagline */
.footer-brand p, .footer-address { line-height: 1.35; }
/* Login placeholder pages */
.login-wrap { max-width: 440px; }
.login-form { display: grid; gap: 20px; }
.band--login { background: var(--teal-deep); color: var(--white); }
.band--login .field label { color: rgba(255,255,255,0.78); }
.band--login .field input { background: var(--white); border-color: var(--white); color: var(--ink); }
.band--login .field input:focus { outline: 2px solid var(--brass); outline-offset: 2px; }
.login-status { color: #ffb4a8; min-height: 1.4em; }
