
/* ==========================================================================
   Mashman Investments -- site.css
   Design system: shared Mashman-family palette + typography, per canonical-
   facts.json designSystem. Two grounds only (white / ink). Platinum is the
   only accent. Zero border-radius. Hairline rules, not shadows.
   ========================================================================== */

:root {
  --ink: #0A0A0A;
  --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;
  --white: #FFFFFF;

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

  --measure: 65ch;
}

/* -------------------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
p { max-width: var(--measure); margin: 0 0 1.4em; }
.no-max { max-width: none; }

.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;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 1000;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

/* -------------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
section { padding: clamp(2.5rem, 6vw, 5rem) 0; }
/* Scroll-reveal: sections fade/slide up into place as they enter the
   viewport. Safe by construction: the reveal class is only meaningful
   once JS confirms it's running (adds .js to <html> and observes), a
   <noscript> rule forces full visibility if JS is off, and a timeout in
   the script below force-reveals anything the observer somehow misses.
   Reduced motion is already handled globally (transition-duration is
   forced to 0.01ms above), so this degrades to an instant, no-motion
   reveal rather than disappearing. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.ground-white { background: var(--white); color: var(--ink-body); }
.ground-ink   { background: var(--ink); color: var(--white); }
.ground-ink h1, .ground-ink h2, .ground-ink h3, .ground-ink h4 { color: var(--white); }
.ground-ink p, .ground-ink li { color: var(--white); }

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

/* Eyebrow label -- Montserrat, wide tracking, uppercase, Platinum-on-dark or
   InkLabel-on-light. This is the system's one small flourish. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-label);
  margin: 0 0 1em;
  display: block;
}
.ground-ink .eyebrow { color: var(--platinum); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-body);
  max-width: 60ch;
}
.ground-ink .lede { color: var(--platinum); }

/* -------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img { height: 30px; width: auto; }
.brand-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
/* Below ~365px, brand text + trigger no longer both fit without crowding
   or overflow. Drop to the mark alone (still identifies the brand via the
   page <title> and immediate content); keep the text for screen readers.
   Standard phone widths (375, 390, 414+) keep the full wordmark. */
@media (max-width: 370px) {
  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
/* -------------------------------------------------------------------------
   Primary nav -- two implementations, one visible at a time by breakpoint.
   Below 720px: dropdown (Menu trigger), matches the header's compact mobile
   layout. At/above 720px: flat inline links, since desktop has the room and
   showing all 5 destinations at once is clearer than hiding them behind a
   click. 720px is not a guess: the flat link list plus the brand lockup
   measured as fitting from 700px up, with a small safety margin added.
   ------------------------------------------------------------------------- */
.nav-flat { display: none; }
.nav-flat ul {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  margin: 0;
  padding: 0;
}
.nav-flat a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4em 0.1em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav-flat a:hover,
.nav-flat a[aria-current="page"] {
  border-bottom-color: var(--ink);
}
@media (min-width: 720px) {
  .nav-flat { display: block; }
  .nav-dropdown { display: none; }
}

/* -------------------------------------------------------------------------
   Nav dropdown -- single trigger, per playbook 5.1 accessible pattern.
   Visibility driven by three independent triggers: :hover (mouse),
   :focus-within (keyboard -- tabbing into any panel link keeps this true,
   so the menu is fully keyboard-operable with zero JS), and a .open class
   (JS, for touch/click). No gap between trigger and panel (top: 100%) so
   the cursor never crosses unhovered space. Right-anchored (right: 0, no
   translateX) because the trigger sits at the header's right edge.
   Active only below the 720px breakpoint (see .nav-flat above).
   ------------------------------------------------------------------------- */
.nav-dropdown {
  position: relative;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule-light);
  padding: 0.6em 1.1em;
  cursor: pointer;
}
.nav-trigger:hover { border-color: var(--ink); }
.nav-trigger .caret {
  display: inline-block;
  transition: transform 0.15s ease;
}
.nav-dropdown:hover .nav-trigger .caret,
.nav-dropdown:focus-within .nav-trigger .caret,
.nav-dropdown.open .nav-trigger .caret {
  transform: rotate(180deg);
}
.nav-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--rule-light);
  padding: 0.4rem 0;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown:hover .nav-panel,
.nav-dropdown:focus-within .nav-panel,
.nav-dropdown.open .nav-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}
.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-panel a {
  display: block;
  padding: 0.75em 1.25em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
}
.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  background: var(--rule-light);
  border-left-color: var(--ink);
}


/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */
.breadcrumb-bar {
  border-bottom: 1px solid var(--rule-light);
  background: var(--white);
}
.breadcrumb-bar .container { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--graphite);
}
.breadcrumb-list a {
  color: var(--ink-label);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
}
.breadcrumb-list a:hover { border-bottom-color: var(--ink-label); }
.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--rule-light);
}
.breadcrumb-list [aria-current="page"] { color: var(--ink-body); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); }
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 3.75rem);
  max-width: 24ch;
  line-height: 1.05;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-solid {
  background: var(--ink);
  color: var(--white);
}
.btn-solid:hover { background: var(--panel); }
.ground-ink .btn { border-color: var(--white); color: var(--white); }
.ground-ink .btn:hover { background: var(--white); color: var(--ink); }
.ground-ink .btn-solid { background: var(--white); color: var(--ink); }
.ground-ink .btn-solid:hover { background: var(--platinum); }

/* -------------------------------------------------------------------------
   The Stake -> Standing device (signature graphic for this property)
   ------------------------------------------------------------------------- */
.shift-device {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(0.6rem, 3vw, 1.75rem);
  margin: 0.5em 0 1em;
}
.shift-device .from {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 7vw, 4.2rem);
  color: var(--steel);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  letter-spacing: -0.02em;
}
.shift-device .arrow {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--platinum);
  display: inline-block;
  animation: arrow-nudge 2.2s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.shift-device .to {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 8vw, 4.8rem);
  color: var(--white);
  letter-spacing: -0.02em;
}

/* -------------------------------------------------------------------------
   Cards / pillars -- flex, not grid auto-fit (playbook 6.2: auto-fit leaves
   phantom empty cells when the item count doesn't divide evenly)
   ------------------------------------------------------------------------- */
.pillar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--rule-light);
  border: 1px solid var(--rule-light);
}
.ground-ink .pillar-row { background: var(--rule-dark); border-color: var(--rule-dark); }
.pillar {
  flex: 1 1 320px;
  background: var(--white);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pillar:hover {
  border-top-color: var(--ink);
  transform: translateY(-3px);
}
.ground-ink .pillar { background: var(--ink); }
.ground-ink .pillar:hover { border-top-color: var(--platinum); }
.pillar .pillar-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--rule-light);
  margin-bottom: 0.35em;
  display: block;
}
.ground-ink .pillar .pillar-num { color: var(--rule-dark); }
.pillar .eyebrow { margin-bottom: 0.6em; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 0.6em; line-height: 1.3; }
.pillar p { margin-bottom: 0; font-size: 1rem; line-height: 1.65; max-width: 34ch; }

/* -------------------------------------------------------------------------
   Cross-link / portfolio callout
   ------------------------------------------------------------------------- */
.callout {
  border: 1px solid var(--rule-light);
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}
.callout:hover { border-color: var(--ink); }
.callout p { max-width: 46ch; }
.callout p { margin: 0; }
.callout-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.callout-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   FAQ accordion -- native <details>/<summary>, no JS required. Marker
   suppressed in favor of a custom caret that rotates on [open], matching
   the nav dropdown's caret treatment.
   ------------------------------------------------------------------------- */
.faq-list {
  border-top: 1px solid var(--rule-light);
  max-width: 72ch;
}
.faq-item {
  border-bottom: 1px solid var(--rule-light);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.15s ease;
}
.faq-item summary:hover { color: var(--graphite); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item .faq-caret {
  font-size: 0.8rem;
  color: var(--graphite);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-caret { transform: rotate(180deg); }
.faq-item .faq-answer {
  margin: 0 0 1.5rem;
  max-width: 65ch;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
form.contact-form { max-width: 640px; }
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-label);
  margin-bottom: 0.5em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--rule-light);
  background: var(--white);
  color: var(--ink-body);
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.honeypot-field { position: absolute; left: -5000px; }
.field-conditional { display: none; }
.field-conditional.is-visible { display: block; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
footer.site-footer {
  background: var(--panel-deep);
  color: var(--platinum);
}
footer.site-footer .container { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 2.5rem; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  padding-bottom: 2.5rem;
}
.footer-col { flex: 1 1 200px; }
.footer-col h2 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.65em; }
.footer-col a {
  color: var(--platinum);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--steel);
}
.footer-bottom a { color: var(--steel); text-decoration: underline; }
.footer-legal {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
}
.footer-legal a { color: var(--steel); text-decoration: underline; }
.footer-legal a:hover { color: var(--platinum); }
.footer-mark { opacity: 0.9; height: 22px; width: auto; aspect-ratio: 716 / 556; }

/* -------------------------------------------------------------------------
   Utility
   ------------------------------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.center-text { text-align: center; }
@media (min-width: 640px) {
  .split { display: flex; gap: clamp(2rem, 5vw, 4rem); align-items: flex-start; }
  .split > * { flex: 1 1 0; }
  /* Uneven variant: first child (usually a photo or small figure) takes
     less room, second child (usually the prose) gets more, so a short
     caption next to a long paragraph doesn't force the paragraph into an
     artificially narrow column. */
  .split-narrow-wide > *:first-child { flex: 0 1 300px; }
  .split-narrow-wide > *:last-child { flex: 1 1 420px; }
  /* Reversed: first child (e.g. a form needing label+input width) gets
     more room, second child (a short sidebar of label/value pairs) less. */
  .split-wide-narrow > *:first-child { flex: 1 1 420px; }
  .split-wide-narrow > *:last-child { flex: 0 1 320px; }
}
@media (max-width: 639px) {
  .split > * + * { margin-top: 2.75rem; }
}

/* -------------------------------------------------------------------------
   Stat strip -- confirmed facts only, presented with editorial weight
   (large numerals) rather than invented metrics.
   ------------------------------------------------------------------------- */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-light);
}
.ground-ink .stat-strip { border-top-color: var(--rule-dark); }
.stat-strip .stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 0.35em;
}
.ground-ink .stat-strip .stat-value { color: var(--white); }
.stat-strip .stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-label);
  max-width: 20ch;
}
.ground-ink .stat-strip .stat-label { color: var(--platinum); }

/* -------------------------------------------------------------------------
   Leadership -- founder photo + bio, per the pattern used on Mashman
   Properties' own home page.
   ------------------------------------------------------------------------- */
.leadership-photo {
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: transform 0.3s ease;
}
.leadership-photo:hover { transform: scale(1.015); }
