/* ==========================================================================
   MASHMAN PROPERTIES — shared stylesheet
   Design system per canonical-facts.json (designSystem) and
   mashman-website-build-playbook.md. Ink/White grounds only, Platinum the
   sole accent, zero border-radius, hairline rules, Montserrat + Inter.
   ========================================================================== */

:root {
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --platinum: #C8C5BE;
  --steel: #8E8B84;
  --graphite: #86837C;
  --slate: #6E6B66;
  --panel: #131316;
  --panel-deep: #0E0E11;
  --rule-dark: #26262A;
  --rule-light: #DDD8CE;
  --ink-body: #3E3E3E;
  --ink-label: #5C584E;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --measure: 68ch;
  --nav-height: 92px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 106.25%; /* ~17px base: a touch more generous than browser default */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.85;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

/* Signature headline pattern: a plain lead-in clause followed by an
   emphasized closing phrase, e.g. "A private firm built on <em>vacant land.</em>"
   Matches the pattern used across the rest of the Mashman family of sites. */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 600;
  color: var(--ink-label);
}
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em {
  color: var(--platinum);
  font-weight: 500;
}

p { margin: 0 0 1.4em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Skip link + accessible focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.9em 1.4em;
  z-index: 1000;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--platinum);
  outline-offset: 3px;
}
.on-dark :focus-visible { outline-color: var(--platinum); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout grounds
   ========================================================================== */
.ground-ink { background: var(--ink); color: var(--white); }
.ground-white { background: var(--white); color: var(--ink-body); }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
}

section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

hr.hairline {
  border: none;
  border-top: 1px solid var(--rule-dark);
  margin: 0;
}
.ground-white hr.hairline { border-top-color: var(--rule-light); }

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--platinum);
  display: inline-block;
  margin: 0 0 1.1em;
}
.ground-white .eyebrow { color: var(--ink-label); }

/* A real H2 that carries eyebrow-level visual weight (used where a heading is
   structurally required but a large section title would be redundant) */
h2.h2-as-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--platinum);
  margin-bottom: 0.75rem;
}
.ground-white h2.h2-as-label { color: var(--ink-label); }

/* ==========================================================================
   Decorative parcel-line motif (aria-hidden background texture)
   ========================================================================== */
.parcel-motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.parcel-motif svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.07;
}
.parcel-motif svg line, .parcel-motif svg rect {
  stroke: var(--platinum);
}
.wrap > * { position: relative; z-index: 1; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--rule-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
}
nav.primary-nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--steel);
  text-decoration: none;
  padding: 0.4em 0.1em;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--platinum);
}

.nav-cta {
  border: 1px solid var(--platinum) !important;
  color: var(--white) !important;
  padding: 0.6em 1.1em !important;
}
.nav-cta:hover { background: var(--platinum); color: var(--ink) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-dark);
  color: var(--white);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  nav.primary-nav {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    gap: 1.5rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  nav.primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  nav.primary-nav a { font-size: 1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 6.5rem);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.08;
  max-width: 20ch;
}
.hero .tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--steel);
  max-width: 48ch;
  margin: 1.75rem 0 0;
  line-height: 1.65;
}
.signature-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--platinum);
  margin: 2.4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2.75rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.95em 1.7em;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-solid-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-solid-light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: var(--rule-dark);
}
.btn-outline-light:hover { border-color: var(--platinum); color: var(--platinum); }
.btn-solid-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-solid-dark:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-light);
}
.btn-outline-dark:hover { border-color: var(--ink); }

/* ==========================================================================
   Cards (flex-wrap, not CSS grid auto-fit — avoids phantom empty cells)
   ========================================================================== */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rule-dark);
  margin-top: 3rem;
}
.ground-white .card-row { background: var(--rule-light); }
.card {
  flex: 1 1 340px;
  background: var(--panel);
  padding: clamp(2.25rem, 4vw, 3rem);
}
.ground-white .card { background: var(--white); }
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.card .card-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--platinum);
  display: block;
  margin-bottom: 1.1rem;
}
.ground-white .card .card-label { color: var(--ink-label); }
.card p { color: var(--steel); font-size: 1.02rem; max-width: 42ch; }
.ground-white .card p { color: var(--ink-body); }

/* ==========================================================================
   Two column split
   ========================================================================== */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split > * { flex: 1 1 360px; }
.split img {
  width: 100%;
  height: auto;
}
.split-photo-frame {
  border: 1px solid var(--rule-dark);
  padding: 0;
  max-width: 340px;
}

/* ==========================================================================
   Statement block (large declarative text section)
   ========================================================================== */
.statement h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  max-width: 20ch;
}
.statement-body {
  max-width: 52ch;
  margin-top: 1.75rem;
}
.statement-body p { color: inherit; }

/* Pull quote (for a real, attributed quotation set apart from body copy) */
.pull-quote {
  margin: 2rem 0 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--platinum);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 16ch;
  margin: 0;
}
.ground-white .pull-quote p { color: var(--ink); }
.pull-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--steel);
  margin-top: 0.9rem;
}
.ground-white .pull-quote cite { color: var(--ink-label); }

/* ==========================================================================
   Stat band — a row of large numerals with small labels
   ========================================================================== */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}
.stat-row .stat { flex: 1 1 160px; }
.stat .stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.ground-white .stat .stat-value { color: var(--ink); }
.stat .stat-label {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--steel);
  line-height: 1.5;
}
.ground-white .stat .stat-label { color: var(--ink-label); }

/* ==========================================================================
   Timeline — chronological entries with a year marker
   ========================================================================== */
.timeline {
  margin-top: 3rem;
  border-top: 1px solid var(--rule-dark);
}
.ground-white .timeline { border-top-color: var(--rule-light); }
.timeline-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-dark);
}
.ground-white .timeline-entry { border-bottom-color: var(--rule-light); }
.timeline-entry .timeline-year {
  flex: 0 0 110px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--platinum);
  letter-spacing: -0.01em;
}
.ground-white .timeline-entry .timeline-year { color: var(--ink-label); }
.timeline-entry .timeline-body { flex: 1 1 420px; }
.timeline-entry .timeline-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.timeline-entry .timeline-body p { color: var(--steel); font-size: 1rem; }
.ground-white .timeline-entry .timeline-body p { color: var(--ink-body); }

/* ==========================================================================
   Numbered list — large numerals for scannable reasoning (replaces dense
   prose blocks where a point-by-point structure reads more clearly)
   ========================================================================== */
.numbered-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}
.numbered-item { flex: 1 1 260px; }
.numbered-item .numbered-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--platinum);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.ground-white .numbered-item .numbered-index { color: var(--ink-label); }
.numbered-item h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.numbered-item p { font-size: 0.98rem; color: var(--steel); max-width: 36ch; }
.ground-white .numbered-item p { color: var(--ink-body); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { margin-top: 2.5rem; }
.faq-item {
  border-top: 1px solid var(--rule-light);
}
.faq-item:last-child { border-bottom: 1px solid var(--rule-light); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--ink-label);
  position: relative;
}
.faq-item summary .faq-icon::before,
.faq-item summary .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink-label);
  top: 50%; left: 50%;
}
.faq-item summary .faq-icon::before { width: 10px; height: 1px; transform: translate(-50%,-50%); }
.faq-item summary .faq-icon::after { width: 1px; height: 10px; transform: translate(-50%,-50%); transition: transform 0.15s ease; }
.faq-item[open] summary .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item .faq-answer { padding: 0 0 1.6rem; max-width: 60ch; color: var(--ink-body); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2rem;
  margin-top: 2.5rem;
}
.form-field { flex: 1 1 300px; display: flex; flex-direction: column; gap: 0.6rem; }
.form-field.full { flex-basis: 100%; }
.form-field label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-label);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 1em 1.1em;
  border: 1px solid var(--rule-light);
  background: var(--white);
  color: var(--ink-body);
  border-radius: 0;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-fieldset {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-light);
}
.form-fieldset-legend {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-label);
  margin: 0 0 0.5rem;
}
.form-submit-row { margin-top: 0.5rem; }
.form-note { font-size: 0.9rem; color: var(--graphite); margin-top: 1.5rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--panel-deep);
  color: var(--steel);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-col { flex: 1 1 200px; }
.footer-col h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--platinum);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--white); }
.footer-brand { flex: 1 1 260px; }
.footer-brand img { height: 30px; margin-bottom: 1rem; }
.footer-brand p { color: var(--graphite); font-size: 0.88rem; max-width: 34ch; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--graphite);
}
.footer-bottom a { color: var(--graphite); text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }

/* Scroll reveal — class is added by JS only, so content is fully visible
   with no JS at all. Skipped entirely under prefers-reduced-motion. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* External link cue */
.ext-cue { }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  padding: 1.1rem 0;
  font-size: 0.82rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--rule-dark);
}
.ground-white .breadcrumbs li:not(:last-child)::after { color: var(--rule-light); }
.breadcrumbs a { color: var(--steel); text-decoration: none; }
.ground-white .breadcrumbs a { color: var(--ink-label); }
.breadcrumbs a:hover { color: var(--white); }
.ground-white .breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current="page"] { color: inherit; }

/* ==========================================================================
   Utility
   ========================================================================== */
.center { text-align: center; }
.narrow { max-width: 62ch; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 3rem; }
.list-plain { padding-left: 1.2em; }
.list-plain li { margin-bottom: 0.6em; }
