/* ==================================================================
   Sloan Financial Solutions
   Built from a review of 110 financial advisor homepages:
   warm off-white ground, one deep navy, one brass accent,
   serif display headings, sans body, numerals instead of icons.
   ================================================================== */

:root {
  --bg: #f7f4ee;
  --bg-alt: #efe9de;
  --white: #ffffff;
  --navy: #14293b;
  --navy-2: #1d3a52;
  --navy-3: #0e1e2c;
  --ink: #23313c;
  --muted: #5b6770;
  --line: #e2dbcd;
  --line-dark: rgba(255, 255, 255, 0.14);
  --brass: #a9803f;
  --brass-light: #d6b67b;
  --brass-tint: #f3ead8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 41, 59, 0.05), 0 8px 24px rgba(20, 41, 59, 0.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.section { padding: 112px 0; }

.section-head { max-width: 680px; margin-bottom: 52px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow-light { color: var(--brass-light); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ------------------------------------------------------------------
   Buttons and links
   ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 6px;
  font-size: 0.97rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.button-primary { background: var(--navy); color: #fff; }

.button-primary:hover { background: var(--navy-2); }

.button-nav { min-height: 44px; padding: 0 20px; font-size: 0.92rem; }

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy);
}

.text-cta span { color: var(--brass); transition: transform 0.2s ease; }

.text-cta:hover span { transform: translateX(3px); }

.text-cta-light { color: #fff; }

.text-cta-light span { color: var(--brass-light); }

/* ------------------------------------------------------------------
   Utility bar
   ------------------------------------------------------------------ */

.utility { background: var(--navy-3); color: rgba(255, 255, 255, 0.78); font-size: 0.84rem; }

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.utility-loc { margin: 0; }

.utility-links { display: flex; align-items: center; gap: 22px; }

.utility-links > a:hover { color: #fff; }

.utility .nav-trigger {
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  background: none;
}

.utility .nav-trigger:hover,
.utility .nav-item.open .nav-trigger { color: #fff; background: none; }

/* ------------------------------------------------------------------
   Header and navigation
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--brass-light);
}

.brand-text { display: inline-flex; flex-direction: column; line-height: 1.2; }

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}

.brand-text small { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-trigger,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.nav-trigger:hover,
.nav-link:hover,
.nav-item.open .nav-trigger { background: var(--bg); color: var(--navy); }

.chevron { width: 12px; height: 12px; flex: none; transition: transform 0.2s ease; }

.nav-item.open .chevron { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 300px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(20, 41, 59, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-menu-right { left: auto; right: 0; }

.nav-item.open .nav-menu { opacity: 1; visibility: visible; transform: none; }

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
}

.nav-menu a:hover { background: var(--bg); }

.nav-menu strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--navy); }

.nav-menu span { display: block; font-size: 0.82rem; color: var(--muted); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span { display: block; height: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */

.hero { padding: 80px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.lead { margin: 24px 0 0; max-width: 540px; font-size: 1.15rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }

.hero-address { margin: 30px 0 0; font-size: 0.88rem; color: var(--muted); }

.hero-photo { position: relative; margin: 0; }

.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
}

.hero-card {
  position: absolute;
  left: -28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero-card-value { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); }

.hero-card-note { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------------ */

.trust { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.trust-row p {
  margin: 0;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.trust-row p:first-child { border-left: 0; padding-left: 0; }

.trust-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}

.trust-row span { display: block; font-size: 0.9rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Meet David
   ------------------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: center;
}

.portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  color: var(--brass-light);
}

.portrait span { font-family: var(--serif); font-size: 4rem; line-height: 1; }

.portrait small { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

.about-copy h2 { margin-bottom: 26px; font-style: italic; }

.about-copy p { color: var(--muted); }

.signature-row { display: flex; flex-direction: column; margin-top: 24px; }

.signature { font-family: "Caveat", cursive; font-size: 2.3rem; line-height: 1; color: var(--navy); }

.signature-caption { margin-top: 6px; font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Services
   ------------------------------------------------------------------ */

.services { background: var(--white); }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { border-color: var(--brass-light); box-shadow: var(--shadow); }

.service-num {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--brass);
}

.service-card h3 { margin-bottom: 10px; }

.service-card > p { font-size: 0.95rem; color: var(--muted); }

.ticks { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--ink);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--brass);
  border-bottom: 1.6px solid var(--brass);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------
   Comparison
   ------------------------------------------------------------------ */

.compare-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.compare-copy h2 { margin-bottom: 20px; }

.compare-copy p { color: var(--muted); }

.table-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }

.compare-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
}

.compare-table tbody th { font-weight: 500; color: var(--ink); }

.compare-table td { color: var(--muted); }

.compare-table .col-sloan { background: var(--navy); color: #fff; font-weight: 600; }

.compare-table thead .col-sloan { color: var(--brass-light); background: var(--navy-3); }

.compare-table tbody tr:not(:last-child) .col-sloan { border-bottom-color: var(--line-dark); }

/* ------------------------------------------------------------------
   Who we serve
   ------------------------------------------------------------------ */

.serve { background: var(--white); }

.serve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.serve-card {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.serve-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.serve-body { padding: 26px 26px 28px; }

.serve-body h3 { margin-bottom: 14px; }

.questions { display: grid; gap: 10px; }

.questions li {
  padding-left: 16px;
  border-left: 2px solid var(--brass-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ------------------------------------------------------------------
   Process
   ------------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: none; }

.steps li { padding-top: 22px; border-top: 2px solid var(--navy); }

.step-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--brass);
}

.steps h3 { margin-bottom: 8px; }

.steps p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ------------------------------------------------------------------
   Team
   ------------------------------------------------------------------ */

.team { background: var(--white); }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: 28px; }

.team-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--brass-light);
}

.team-card-soon .team-photo { background: var(--bg-alt); color: var(--muted); }

.team-role { margin: 4px 0 6px; font-size: 0.9rem; color: var(--muted); }

.team-contact { margin: 0; font-size: 0.9rem; }

.team-contact a { color: var(--navy); border-bottom: 1px solid var(--brass-light); }

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }

.faq-head h2 { margin-bottom: 16px; }

.faq-head p { color: var(--muted); }

.faq-head a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--brass-light); }

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  position: relative;
  padding: 22px 44px 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--brass);
  border-bottom: 1.6px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }

.faq-item p { margin: 0; padding: 0 0 22px; max-width: 620px; color: var(--muted); }

.faq-item a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--brass-light); }

/* ------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------ */

.contact { background: var(--navy); color: rgba(255, 255, 255, 0.82); }

.contact-head { max-width: 640px; margin-bottom: 48px; }

.contact-head h2 { margin-bottom: 14px; color: #fff; }

.office-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 24px; }

.office-card {
  padding: 30px 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.office-card h3 { margin-bottom: 14px; color: #fff; }

.office-card p { margin: 0 0 6px; font-size: 0.95rem; }

.office-card a:hover { color: #fff; }

.office-address { color: #fff; }

.office-phone { font-family: var(--serif); font-size: 1.3rem; color: var(--brass-light); }

.office-meta { margin-top: 10px !important; margin-bottom: 18px !important; font-size: 0.85rem !important; color: rgba(255, 255, 255, 0.6); }

.map-card { overflow: hidden; min-height: 280px; border-radius: var(--radius); background: var(--navy-2); }

.map-card iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; filter: grayscale(0.3); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer { padding: 64px 0 32px; background: var(--navy-3); color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }

.site-footer .brand-text strong { color: #fff; }

.site-footer .brand-mark { background: rgba(255, 255, 255, 0.08); }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }

.footer-note { margin: 16px 0 0; max-width: 300px; color: rgba(255, 255, 255, 0.55); }

.footer-title {
  margin-bottom: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.site-footer ul { display: grid; gap: 8px; }

.site-footer a:hover { color: #fff; }

.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); }

.legal-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 14px; }

.legal-links a { font-weight: 600; color: #fff; }

.legal-links a:hover { text-decoration: underline; }

.disclosure { max-width: 900px; font-size: 0.8rem; line-height: 1.6; color: rgba(255, 255, 255, 0.55); }

.disclosure a { text-decoration: underline; }

.copyright { margin: 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ------------------------------------------------------------------
   Legal page
   ------------------------------------------------------------------ */

.legal-page { padding: 72px 0 96px; }

.legal-wrap { max-width: 740px; }

.legal-wrap h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 10px; }

.legal-updated { margin-bottom: 32px; font-size: 0.85rem; color: var(--muted); }

.legal-wrap h2 { margin: 32px 0 10px; font-size: 1.4rem; }

.legal-wrap p, .legal-wrap li { color: var(--muted); }

.legal-wrap ul { padding-left: 20px; list-style: disc; }

.legal-wrap a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--brass-light); }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 1120px) {
  .brand-text small { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .map-card { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 41, 59, 0.1);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-header.nav-open .main-nav { display: flex; }

  .main-nav .nav-trigger,
  .main-nav .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 15px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }

  .main-nav .nav-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 4px 0 10px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav .nav-item.open .nav-menu { display: block; }

  .hero { padding: 48px 0 72px; }

  .hero-grid,
  .about-grid,
  .compare-grid,
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-card { left: 16px; bottom: 16px; }

  .about-portrait { max-width: 320px; }

  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row p:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-row p:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .serve-grid { grid-template-columns: 1fr; max-width: 560px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .container { width: min(100% - 32px, 1180px); }

  .utility-loc { display: none; }

  .utility-row { justify-content: center; }

  .utility-links { gap: 18px; }

  .nav-wrap { min-height: 66px; }

  .button-nav { display: none; }

  .brand-text strong { font-size: 1rem; }

  .hero-actions .button { width: 100%; }

  .trust-row { grid-template-columns: 1fr; }
  .trust-row p, .trust-row p:first-child, .trust-row p:nth-child(3) { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .trust-row p:last-child { border-bottom: 0; }

  .service-grid,
  .steps,
  .office-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

  .section { padding: 64px 0; }
}

/* ==================================================================
   Motion and signature elements
   Content is always visible by default. Scroll-linked effects only
   run where the browser supports them natively.
   ================================================================== */

:root { interpolate-size: allow-keywords; }

.section-sub { margin: 16px 0 0; max-width: 560px; color: var(--muted); }

/* Scroll progress bar */
.scroll-progress { display: none; }

/* Header condenses on scroll */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(20, 41, 59, 0.08); }
.nav-wrap { transition: min-height 0.25s ease; }
.site-header.is-scrolled .nav-wrap { min-height: 66px; }

/* Buttons */
.button { position: relative; overflow: hidden; gap: 10px; }
.button-arrow span { transition: transform 0.25s ease; }
.button-arrow:hover span { transform: translateX(4px); }
.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.button-primary:hover::after { left: 120%; }

/* Hero: lake contours, entrance, underline */
.hero { position: relative; overflow: hidden; }

.hero-contours {
  position: absolute;
  right: -160px;
  top: -120px;
  width: 980px;
  max-width: none;
  pointer-events: none;
  opacity: 0.9;
  animation: drift 60s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: rotate(0deg) translate(0, 0); }
  to { transform: rotate(6deg) translate(-30px, 20px); }
}

.hero-grid { position: relative; }

.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.3s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.42s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.52s; }

.hero-photo { animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
.hero-photo img { animation: slowZoom 20s ease-out both; }
.hero-photo { overflow: visible; }
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--brass-light);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-photo { z-index: 0; }
.hero-photo img { position: relative; }
.hero-photo-frame { overflow: hidden; border-radius: var(--radius); }

.hero-card { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s both; z-index: 2; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes slowZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hl { position: relative; white-space: nowrap; }

.hl-line {
  position: absolute;
  left: -2%;
  bottom: -0.12em;
  width: 104%;
  height: 0.32em;
  overflow: visible;
}

.hl-line path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.9s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* Live open/closed status */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--brass); }

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass-light);
}

.status.is-open { color: #2f7a55; }
.status.is-open .status-dot { background: #3c9a6a; }
.status.is-open .status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #3c9a6a;
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  from { transform: scale(0.6); opacity: 0.8; }
  to { transform: scale(1.8); opacity: 0; }
}

.contact .status { color: var(--brass-light); }
.contact .status.is-open { color: #7fd1a6; }
.contact .status.is-open .status-dot { background: #5cc28d; }
.contact .status.is-open .status-dot::after { border-color: #5cc28d; }

/* Trust strip: brass line sweeps under each item on hover */
.trust-row p { position: relative; transition: background 0.3s ease; }
.trust-row p::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.trust-row p:first-child::after { left: 0; }
.trust-row p:hover::after { transform: scaleX(1); }

/* Portrait sheen */
.portrait, .team-photo { position: relative; overflow: hidden; }
.portrait::after, .team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(214, 182, 123, 0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sheen 6s ease-in-out infinite;
}
.team-card-soon .team-photo::after { display: none; }

@keyframes sheen {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Service cards: cursor spotlight, lift, numeral */
.service-card { position: relative; overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%), rgba(214, 182, 123, 0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-num { transition: color 0.25s ease, letter-spacing 0.25s ease; }
.service-card:hover .service-num { letter-spacing: 0.12em; }
.ticks li { transition: transform 0.25s ease; }
.service-card:hover .ticks li { transform: translateX(3px); }
.service-card:hover .ticks li:nth-child(2) { transition-delay: 0.04s; }
.service-card:hover .ticks li:nth-child(3) { transition-delay: 0.08s; }

/* Comparison check marks */
.chk {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
}
.chk path {
  fill: none;
  stroke: var(--brass-light);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.compare-table tbody tr { transition: background 0.2s ease; }
.compare-table tbody tr:hover th,
.compare-table tbody tr:hover td:not(.col-sloan) { background: var(--bg); }

/* Who we serve: image zoom */
.serve-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.serve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.serve-card-media { overflow: hidden; }
.serve-card img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.serve-card:hover img { transform: scale(1.05); }
.serve-card { overflow: hidden; }

/* Steps: brass line on top of the navy rule */
.steps li { position: relative; }
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.steps li:hover::before { transform: scaleX(1); }

/* FAQ smooth open */
.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.35s ease, content-visibility 0.35s allow-discrete;
}
.faq-item[open]::details-content { height: auto; }
.faq-item summary { transition: color 0.2s ease; }
.faq-item summary:hover { color: var(--brass); }

/* Contact contours */
.contact { position: relative; overflow: hidden; }
.contact-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  animation: drift 70s ease-in-out infinite alternate;
}
.contact .container { position: relative; }
.office-card { transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease; }
.office-card:hover { border-color: rgba(214, 182, 123, 0.5); background: rgba(255, 255, 255, 0.07); transform: translateY(-3px); }

/* ------------------------------------------------------------------
   A year with Sloan
   ------------------------------------------------------------------ */

.year { background: var(--white); }

.year-track { position: relative; padding-top: 8px; }

.year-line {
  position: relative;
  height: 4px;
  margin: 92px 0 0;
  border-radius: 4px;
  background: var(--bg-alt);
}

.year-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--progress, 0) * 100%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brass-light), var(--brass));
  transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.year-now {
  position: absolute;
  top: 50%;
  left: calc(var(--progress, 0) * 100%);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--brass);
  transition: left 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.year-now-label {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.year-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 36px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.year-months li { padding-left: 2px; border-left: 1px solid var(--line); padding: 2px 0 0 6px; }

.year-stops { position: absolute; left: 0; right: 0; top: 8px; height: 92px; }

.year-stop {
  position: absolute;
  bottom: -8px;
  left: calc((var(--m) - 1) / 12 * 100%);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.year-stop-dot {
  width: 16px;
  height: 16px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--brass-light);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.year-stop-label {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.year-stop-label strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.year-stop:hover .year-stop-label { transform: translateY(-3px); border-color: var(--brass-light); }

.year-stop[aria-selected="true"] .year-stop-label { background: var(--navy); border-color: var(--navy); color: var(--brass-light); }
.year-stop[aria-selected="true"] .year-stop-label strong { color: #fff; }
.year-stop[aria-selected="true"] .year-stop-dot { background: var(--brass); border-color: var(--brass); transform: scale(1.25); }

.year-panel {
  max-width: 640px;
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 3px solid var(--brass);
  background: var(--bg);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.year-panel-title { margin-bottom: 6px; font-size: 1.35rem; }

.year-panel-text { margin: 0; color: var(--muted); }

.year-panel.is-swapping { animation: panelSwap 0.4s ease; }

@keyframes panelSwap {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .year-line, .year-months { display: none; }
  .year-stops { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .year-stop { position: static; flex-direction: row; align-items: center; }
  .year-stop-dot { display: none; }
  .year-stop-label { width: 100%; white-space: normal; }
  .year-panel { margin-top: 20px; }
}

/* ------------------------------------------------------------------
   Scroll-linked effects (progressive enhancement)
   ------------------------------------------------------------------ */

@supports (animation-timeline: view()) {
  .scroll-progress {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100;
    background: linear-gradient(90deg, var(--brass-light), var(--brass));
    transform-origin: left;
    animation: grow linear both;
    animation-timeline: scroll(root);
  }

  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .fx-up {
    animation: fxUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  @keyframes fxUp {
    from { opacity: 0.001; transform: translateY(36px); }
    to { opacity: 1; transform: none; }
  }

  .service-grid .fx-up:nth-child(2), .serve-grid .fx-up:nth-child(2), .team-grid .fx-up:nth-child(2) { animation-range: entry 8% entry 63%; }
  .service-grid .fx-up:nth-child(3), .serve-grid .fx-up:nth-child(3), .team-grid .fx-up:nth-child(3) { animation-range: entry 16% entry 71%; }
  .service-grid .fx-up:nth-child(4) { animation-range: entry 24% entry 79%; }

  .fx-rows tbody tr {
    animation: rowIn linear both;
    animation-timeline: view();
    animation-range: entry 10% entry 90%;
  }

  @keyframes rowIn {
    from { opacity: 0.001; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
  }

  .fx-steps li::before {
    animation: lineIn linear both;
    animation-timeline: view();
    animation-range: entry 40% cover 40%;
  }

  @keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .serve-card img {
    animation: parallax linear both;
    animation-timeline: view();
  }

  @keyframes parallax { from { object-position: 50% 30%; } to { object-position: 50% 70%; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hl-line path { stroke-dashoffset: 0; }
  .scroll-progress { display: none !important; }
}

@media (max-width: 960px) {
  .hero-contours { opacity: 0.35; top: 40px; right: -420px; }
  .year-stop { align-self: stretch; }
  .year-stop-label { height: 100%; }
}

/* ==================================================================
   Brand logo
   ================================================================== */

.brand-logo { display: block; height: 54px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .brand-logo { height: 46px; }
.brand-footer .brand-logo { height: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* Homepage team cards link to Our Story */
a.team-card { display: block; color: inherit; transition: transform 0.25s ease; }
a.team-card:hover { transform: translateY(-4px); }
a.team-card:hover h3 { color: var(--brass); }
.team-more { margin: 8px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.team-more span { color: var(--brass); display: inline-block; transition: transform 0.2s ease; }
a.team-card:hover .team-more span { transform: translateX(4px); }

/* ==================================================================
   Our Story page
   ================================================================== */

.story-hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.story-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: center; }
.story-hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.story-hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.story-hero-copy > *:nth-child(3) { animation-delay: 0.26s; }
.story-hero-copy > *:nth-child(4) { animation-delay: 0.4s; }
.story-hero .hl { white-space: nowrap; }

.story-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.story-facts p { margin: 0; padding: 20px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.story-facts p:last-child { border-right: 0; margin-right: 0; }
.story-facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.2rem; line-height: 1; color: var(--navy); }
.story-facts span { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--muted); }

.story-logo { margin: 0; padding: 36px 36px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; position: relative; }
.story-logo img { width: 100%; max-width: 300px; margin: 0 auto; animation: logoIn 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both; }
.story-logo figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--muted); }

@keyframes logoIn {
  from { opacity: 0; transform: scale(0.94); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Why Sloan exists */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 280px 1fr; gap: 72px; align-items: start; }
.why-aside { position: sticky; top: 110px; }
.portrait-sm { aspect-ratio: 4 / 5; }
.why-aside-name { margin: 16px 0 0; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.why-aside-role { margin: 2px 0 0; font-size: 0.9rem; color: var(--muted); }
.why-copy { max-width: 680px; }
.why-copy h2 { margin-bottom: 28px; font-style: italic; }
.why-copy p { color: var(--muted); font-size: 1.05rem; }

/* Roots */
.roots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.roots-card { position: relative; overflow: hidden; padding: 32px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.roots-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.roots-kicker { display: block; margin-bottom: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.roots-card h3 { margin-bottom: 12px; }
.roots-card p { position: relative; color: var(--muted); font-size: 0.97rem; }
.roots-address { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.85rem !important; color: var(--navy) !important; font-weight: 500; }
.roots-card-mn::after, .roots-card-wi::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 170px;
  height: 170px;
  background: url("images/logo-stacked-dark.png") no-repeat;
  background-size: 340px auto;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.roots-card-mn::after { background-position: -10px -60px; }
.roots-card-wi::after { background-position: -150px -120px; }
.roots-card:hover::after { opacity: 0.16; }

/* Chapters timeline */
.chapters { background: var(--white); }
.chapter-list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 34px; }
.chapter-list::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.chapter-list li { position: relative; }
.chapter-list li::before { content: ""; position: absolute; top: -34px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--brass-light); }
.chapter-now::before { background: var(--brass) !important; border-color: var(--brass) !important; box-shadow: 0 0 0 6px var(--brass-tint); }
.chapter-when { display: block; margin-bottom: 8px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.chapter-list h3 { margin-bottom: 8px; font-size: 1.15rem; }
.chapter-list p { margin: 0; font-size: 0.93rem; color: var(--muted); }

@supports (animation-timeline: view()) {
  .chapter-list::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    height: 2px;
    background: linear-gradient(90deg, var(--brass-light), var(--brass));
    transform-origin: left;
    animation: lineIn linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 45%;
  }
}

/* Quote band */
.quote-band { position: relative; overflow: hidden; padding: 120px 0; background: var(--navy); color: rgba(255, 255, 255, 0.8); }
.quote-inner { position: relative; max-width: 900px; text-align: center; }
.big-quote { margin: 0; }
.big-quote p { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.2; color: #fff; }
.big-quote em { color: var(--brass-light); }
.quote-sub { max-width: 640px; margin: 28px auto 0; font-size: 1.02rem; }

/* Promises */
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.promise { padding-top: 22px; border-top: 2px solid var(--navy); }
.promise-num { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--brass); }
.promise h3 { margin-bottom: 10px; }
.promise p { margin: 0; color: var(--muted); }

/* People (Tempus-style cards) */
.people { background: var(--bg-alt); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.person { scroll-margin-top: 120px; padding: 36px 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-align: center; transition: box-shadow 0.25s ease, border-color 0.25s ease; }
.person:hover { box-shadow: var(--shadow); }
.person:target { border-color: var(--brass); box-shadow: 0 0 0 4px var(--brass-tint), var(--shadow); }
.person-photo { position: relative; width: 168px; margin: 0 auto 20px; }
.person-photo .avatar, .person-photo img { width: 168px; height: 168px; border-radius: 50%; }
.person-photo img { object-fit: cover; }
.person-photo .avatar { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line); }
.person-photo .avatar span { font-family: var(--serif); font-size: 2.6rem; color: var(--brass-light); }
.person-photo .avatar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(214, 182, 123, 0.18) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 6s ease-in-out infinite; }
.person-emoji { position: absolute; right: 2px; bottom: 6px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); font-size: 1.45rem; line-height: 1; transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); cursor: default; }
.person:hover .person-emoji { transform: rotate(-12deg) scale(1.12); }
.person h3 { font-size: 1.45rem; }
.person-role { margin: 6px 0 4px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.person-office { margin: 0 0 22px; font-size: 0.88rem; color: var(--muted); }
.person-office a { color: var(--navy); border-bottom: 1px solid var(--brass-light); }

.person-acc { text-align: left; border-top: 1px solid var(--line); }
.person-acc summary { position: relative; padding: 16px 36px 16px 4px; list-style: none; cursor: pointer; font-family: var(--serif); font-size: 1.08rem; color: var(--navy); transition: color 0.2s ease; }
.person-acc summary::-webkit-details-marker { display: none; }
.person-acc summary:hover { color: var(--brass); }
.person-acc summary::before, .person-acc summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 1.6px; background: var(--brass); transition: transform 0.25s ease; }
.person-acc summary::after { transform: rotate(90deg); }
.person-acc[open] summary::after { transform: rotate(0deg); }
.person-acc::details-content { height: 0; overflow: clip; transition: height 0.35s ease, content-visibility 0.35s allow-discrete; }
.person-acc[open]::details-content { height: auto; }
.acc-body { margin: 0; padding: 0 4px 18px; }
.acc-body p { font-size: 0.94rem; color: var(--muted); }
.acc-body p:last-child { margin-bottom: 0; }
.acc-soon { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 0.78rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass) !important; }
.fun { display: grid; gap: 14px; }
.fun div { padding: 14px 16px; background: var(--bg); border-radius: 10px; }
.fun dt { margin-bottom: 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.fun dd { margin: 0; font-size: 0.94rem; color: var(--ink); }
.song { display: block; margin-bottom: 4px; font-family: var(--serif); font-style: italic; color: var(--navy); }
.emoji-answer { font-size: 1.8rem !important; line-height: 1.2; }
.emoji-note { display: block; font-size: 0.88rem; color: var(--muted); }

/* CTA */
.story-cta-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; padding: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.story-cta-inner h2 { margin-bottom: 12px; }
.story-cta-inner p:last-child { margin: 0; color: var(--muted); }
.story-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

@media (max-width: 1120px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chapter-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .chapter-list::before, .chapter-list::after { display: none; }
}

@media (max-width: 960px) {
  .brand-logo { height: 46px; }
  .story-hero-grid, .why-grid, .story-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .story-logo { max-width: 380px; }
  .why-aside { position: static; display: grid; grid-template-columns: 120px 1fr; gap: 0 20px; align-items: center; }
  .why-aside .portrait { grid-row: span 2; }
  .why-aside-name { margin: 0; align-self: end; }
  .why-aside-role { align-self: start; }
  .roots-grid, .promise-grid { grid-template-columns: 1fr; max-width: 620px; }
  .quote-band { padding: 88px 0; }
}

@media (max-width: 640px) {
  .brand-logo { height: 40px; }
  .people-grid { grid-template-columns: 1fr; }
  .chapter-list { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; gap: 28px; }
  .chapter-list li::before { top: 4px; left: -28px; }
  .chapter-list::before { display: block; left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .story-facts p { padding-right: 20px; margin-right: 20px; }
  .story-facts strong { font-size: 1.8rem; }
  .story-cta-inner { padding: 30px 24px; }
}

/* Fixes */
.brand-logo { height: 64px; }
.site-header.is-scrolled .brand-logo { height: 52px; }
.roots-card-mn::after, .roots-card-wi::after { display: none; }
p.eyebrow, .eyebrow { color: var(--brass) !important; }
p.eyebrow-light, .eyebrow-light { color: var(--brass-light) !important; }
@media (max-width: 960px) { .brand-logo, .site-header.is-scrolled .brand-logo { height: 50px; } }
@media (max-width: 640px) { .brand-logo, .site-header.is-scrolled .brand-logo { height: 44px; } }
@media (max-width: 640px) {
  .story-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .story-facts p { margin: 0; padding: 16px 10px 0 0; border-right: 0; }
  .story-facts strong { font-size: 1.6rem; }
  .story-facts span { font-size: 0.78rem; line-height: 1.35; }
}

/* Real team photos (temporary headshots) */
.portrait-photo { background: var(--bg-alt); }
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.portrait-photo::after { display: none; }
.about-portrait { max-width: 320px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-photo:has(img)::after { display: none; }
.person-photo img { box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line); object-position: center 20%; }
.person-sub { margin: -2px 0 4px; font-size: 0.82rem; color: var(--muted); }
.chapter-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1120px) { .chapter-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .chapter-list { grid-template-columns: 1fr; } }
.about-grid { grid-template-columns: 320px 1fr; gap: 80px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } .about-portrait { max-width: 280px; } }

/* ==================================================================
   v9: Symmetry pass + premium motion system
   ================================================================== */

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
html.has-lenis { scroll-behavior: auto; }

/* ---------- Cross-page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.35s ease both; }
::view-transition-new(root) { animation: vtIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: site-header; }

/* ---------- Header hide on scroll down ---------- */
.site-header { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease; }
.site-header.is-hidden { transform: translateY(-105%); }

/* ---------- Section heads: two-column, balanced ---------- */
.section-head:not(.center) {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  column-gap: 72px;
  align-items: end;
}
.section-head:not(.center) > .eyebrow,
.section-head:not(.center) > h2 { grid-column: 1; }
.section-head:not(.center) > h2 { max-width: 640px; }
.section-head:not(.center) > .section-sub {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  max-width: 440px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.02rem;
}
.quote-band .section-sub, .contact .section-sub { border-color: var(--line-dark); }

/* ---------- Services: aligned rows with subgrid ---------- */
.service-grid { row-gap: 20px; }
@supports (grid-template-rows: subgrid) {
  .service-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .service-card > .service-num { align-self: start; }
  .service-card > h3 { align-self: start; }
  .service-card > p { margin-bottom: 20px; }
  .service-card .ticks { margin-top: 0; align-self: start; }

  .serve-card { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }

  .roots-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
  .roots-card > .roots-address { align-self: end; }

  .promise { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .steps li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
  .chapter-list li { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
}

/* ---------- Home team: three balanced cards across the full width ---------- */
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
a.team-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 22px;
  align-items: center;
  align-content: center;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
a.team-card .team-photo {
  grid-row: 1 / span 3;
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--white), 0 0 0 6px var(--line);
}
a.team-card h3 { align-self: end; font-size: 1.25rem; }
a.team-card .team-role { margin: 2px 0; }
a.team-card .team-more { align-self: start; margin: 4px 0 0; }

/* ---------- Year panel: full width, balanced ---------- */
.year-panel {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 40px;
  align-items: center;
  padding: 28px 36px;
}
.year-panel-title { margin: 0; font-size: 1.6rem; }

/* ---------- FAQ: balanced left column ---------- */
.faq-head { position: sticky; top: 120px; }
.ask-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.ask-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.ask-name { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.ask-text { margin: 4px 0 8px !important; font-size: 0.9rem; color: var(--muted); }

/* ---------- Our Story timeline: line ends on the last chapter ---------- */
.chapter-list { --cols: 6; --gap: 20px; gap: 0 var(--gap); }
.chapter-list::before,
.chapter-list::after { right: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) - 8px); left: 8px; }
.chapter-list::after {
  animation: none !important;
  content: "";
  position: absolute;
  top: 7px;
  height: 2px;
  background: linear-gradient(90deg, var(--brass-light), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.chapter-list.is-lit::after, html:not(.motion) .chapter-list::after { transform: scaleX(1); }
.chapter-list li::before { transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.chapter-list.is-lit li::before, html:not(.motion) .chapter-list li::before { background: var(--brass-light); }
.chapter-list.is-lit li:nth-child(1)::before { transition-delay: 0s; }
.chapter-list.is-lit li:nth-child(2)::before { transition-delay: 0.4s; }
.chapter-list.is-lit li:nth-child(3)::before { transition-delay: 0.8s; }
.chapter-list.is-lit li:nth-child(4)::before { transition-delay: 1.2s; }
.chapter-list.is-lit li:nth-child(5)::before { transition-delay: 1.6s; }
.chapter-list.is-lit li:nth-child(6)::before { transition-delay: 2s; transform: scale(1.15); }
.chapter-list h3 { align-self: start; }

/* ---------- People cards: uniform meta block ---------- */
.person-sub { min-height: 1.4em; }
.person-office { min-height: 1.5em; }

/* ---------- Communities marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-style: italic;
  color: var(--navy);
  white-space: nowrap;
}
.marquee-list li:nth-child(even) { color: var(--brass); }
.marquee-list li::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brass-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Mobile quick-contact bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    display: grid;
    grid-template-columns: 0.8fr 1.6fr;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20, 41, 59, 0.18);
    transform: translateY(130%);
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
  .mobile-cta-call { border: 1px solid var(--line); color: var(--navy); }
  .mobile-cta-book { background: var(--navy); color: #fff; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Card tilt ---------- */
html.motion .person,
html.motion a.team-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
html.motion a.team-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* ---------- Hero layers ---------- */
.hero-contours, .hero-photo, .story-logo { transition: translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.motion .hero-copy > *, html.motion .story-hero-copy > * { animation: none; }

/* ---------- Reveal system (only when JS + motion are active) ---------- */
html.motion [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition-property: opacity, translate, transform, box-shadow, border-color, background;
  transition-duration: 0.9s, 0.9s, 0.35s, 0.25s, 0.25s, 0.25s;
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s, 0s;
}
html.motion [data-reveal].in { opacity: 1; translate: 0 0; }

/* Word-by-word heading reveal */
html.motion .split[data-reveal] { opacity: 1; translate: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.07em 0.1em 0; margin: 0 -0.07em -0.1em 0; }
html.motion .split .wi { display: inline-block; translate: 0 108%; transition: translate 1s cubic-bezier(0.2, 0.75, 0.15, 1); transition-delay: calc(var(--wi, 0) * 45ms); }
html.motion .split.in .wi { translate: 0 0; }
.split .w-hl { overflow: visible; }
html.motion .split .w-hl .wi { translate: 0 35%; opacity: 0; transition: translate 1s cubic-bezier(0.2, 0.75, 0.15, 1), opacity 0.8s ease; transition-delay: calc(var(--wi, 0) * 45ms); }
html.motion .split.in .w-hl .wi { translate: 0 0; opacity: 1; }

/* Image reveals */
html.motion .hero-photo-frame[data-reveal-img],
html.motion .portrait-photo[data-reveal-img],
html.motion .serve-card img[data-reveal-img],
html.motion .story-logo img[data-reveal-img],
html.motion .compare-table[data-reveal-img] {
  clip-path: inset(0 0 100% 0 round 10px);
  transition: clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.motion .hero-photo-frame[data-reveal-img].in,
html.motion .portrait-photo[data-reveal-img].in,
html.motion .serve-card img[data-reveal-img].in,
html.motion .story-logo img[data-reveal-img].in,
html.motion .compare-table[data-reveal-img].in { clip-path: inset(0 0 0 0 round 10px); }
html.motion .person-photo[data-reveal-img],
html.motion .team-photo[data-reveal-img],
html.motion .ask-card img[data-reveal-img] {
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.9s ease, scale 1.1s cubic-bezier(0.2, 0.75, 0.15, 1);
}
html.motion .person-photo[data-reveal-img].in,
html.motion .team-photo[data-reveal-img].in,
html.motion .ask-card img[data-reveal-img].in { opacity: 1; scale: 1; }

/* ---------- Responsive for the new layouts ---------- */
@media (max-width: 1120px) {
  .chapter-list { --cols: 3; }
  .team-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 960px) {
  .section-head:not(.center) { grid-template-columns: 1fr; row-gap: 0; }
  .section-head:not(.center) > .section-sub { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 20px; max-width: 560px; }
  .year-panel { grid-template-columns: 1fr; gap: 8px; padding: 24px; }
  .faq-head { position: static; }
}
@media (max-width: 640px) {
  .marquee { padding: 20px 0; }
  .ask-card { grid-template-columns: 60px 1fr; }
  .ask-card img { width: 60px; height: 60px; }
  a.team-card { grid-template-columns: 88px 1fr; padding: 18px; }
  a.team-card .team-photo { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .site-header.is-hidden { transform: none; }
}
.ask-card .ask-name { color: var(--navy) !important; font-weight: 500; }
.compare-table th:first-child { width: 42%; }
.compare-table th:nth-child(2) { width: 25%; }

/* ==================================================================
   v10: Fluidity pass
   ================================================================== */

/* Header never changes height (it used to push the page 12px). */
.nav-wrap { transition: none; }
.site-header.is-scrolled .nav-wrap { min-height: 78px; }
.brand-logo { transform-origin: left center; transition: scale 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.site-header.is-scrolled .brand-logo { height: 64px; scale: 0.84; }
.site-header { transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease; }
@media (max-width: 960px) { .site-header.is-scrolled .brand-logo { height: 50px; scale: 1; } }
@media (max-width: 640px) {
  .site-header.is-scrolled .nav-wrap { min-height: 66px; }
  .site-header.is-scrolled .brand-logo { height: 44px; }
}

/* No more per-frame repaints from scroll-linked effects. */
.serve-card img, .compare-table tbody tr, .steps li::before { animation: none !important; }
html.motion .story-logo img { animation: none; }
.hero-contours, .contact-contours, .marquee-track { will-change: transform; }

/* One easing everywhere: fast start, long soft landing. */
:root { --ease: cubic-bezier(0.16, 1, 0.3, 1); --ease-io: cubic-bezier(0.65, 0, 0.35, 1); }

html.motion [data-reveal] {
  translate: 0 22px;
  transition-property: opacity, translate, transform, box-shadow, border-color, background;
  transition-duration: 0.85s, 0.85s, 0.4s, 0.3s, 0.3s, 0.3s;
  transition-timing-function: var(--ease);
  transition-delay: calc(min(var(--i, 0), 5) * 70ms), calc(min(var(--i, 0), 5) * 70ms), 0s, 0s, 0s, 0s;
}
/* Tilted cards used to lose their fade; give them both. */
html.motion .person[data-reveal],
html.motion a.team-card[data-reveal] {
  transition-property: opacity, translate, transform, box-shadow, border-color;
  transition-duration: 0.85s, 0.85s, 0.5s, 0.3s, 0.3s;
}

html.motion .split .wi { transition: translate 1s var(--ease); transition-delay: calc(var(--wi, 0) * 32ms); }
html.motion .split .w-hl .wi { transition: translate 1s var(--ease), opacity 0.8s ease; transition-delay: calc(var(--wi, 0) * 32ms); }

html.motion .hero-photo-frame[data-reveal-img],
html.motion .portrait-photo[data-reveal-img],
html.motion .serve-card img[data-reveal-img],
html.motion .story-logo img[data-reveal-img],
html.motion .compare-table[data-reveal-img] {
  transition: clip-path 1.15s var(--ease-io), scale 0.9s var(--ease);
}
html.motion .person-photo[data-reveal-img],
html.motion .team-photo[data-reveal-img],
html.motion .ask-card img[data-reveal-img] { transition: opacity 0.8s ease, scale 1s var(--ease); }

/* Table rows slide in one after another. */
html.motion .compare-table tbody tr[data-reveal] { translate: 16px 0; }
html.motion .compare-table tbody tr[data-reveal].in { translate: 0 0; }

/* Step lines draw in once the step appears. */
.steps li::before { transition: transform 0.9s var(--ease-io); }
html:not(.motion) .steps li::before { transform: scaleX(1); }
html.motion .steps li.in::before { transform: scaleX(1); transition-delay: calc(min(var(--i, 0), 5) * 70ms + 0.25s); }

/* Composited hero drift with scroll (transform only). */
@supports (animation-timeline: scroll()) {
  html.motion .hero-photo-frame img {
    animation: heroDrift linear both;
    animation-timeline: scroll(root);
    animation-range: 0 90vh;
  }
  @keyframes heroDrift { from { translate: 0 0; } to { translate: 0 7%; } }
}
.hero-photo-frame img { scale: 1.08; }

/* Hover states share the same easing. */
.service-card, .serve-card, .roots-card, .office-card, .faq-item, .year-stop-label, .card-link span, .text-cta span { transition-timing-function: var(--ease); }
.serve-card img { transition: transform 1s var(--ease), clip-path 1.15s var(--ease-io); }
.button { transition: background 0.3s ease, translate 0.45s var(--ease), box-shadow 0.3s ease; }
.button:hover { transform: none; }
.is-offscreen .marquee-track,
.is-offscreen .hero-contours,
.is-offscreen .contact-contours,
.is-offscreen.status .status-dot::after,
.is-offscreen .status-dot::after { animation-play-state: paused; }
.is-offscreen.marquee .marquee-track { animation-play-state: paused; }

/* ==================================================================
   v11: David's content (services, who we serve, cities)
   ================================================================== */

/* Mega menu */
.nav-menu-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; min-width: 580px; padding: 14px; }
.nav-col { display: grid; align-content: start; }
.nav-col-title { margin: 4px 12px 6px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.nav-menu-list { display: grid; grid-template-columns: 1fr 1fr; min-width: 460px; }
.nav-menu-list a { padding: 9px 12px; }

/* Service tabs */
.svc-tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 36px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.svc-tab { position: relative; z-index: 1; padding: 12px 26px; border: 0; border-radius: 999px; background: transparent; font-size: 0.97rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.35s var(--ease); }
.svc-tab[aria-selected="true"] { color: #fff; }
.svc-tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--navy); box-shadow: 0 6px 16px rgba(20, 41, 59, 0.2); transition: transform 0.55s var(--ease), width 0.55s var(--ease); }
html:not(.js) .svc-tab-ink { display: none; }
.svc-panel.is-entering { animation: panelIn 0.6s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Wealth path */
.wealth-path { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 32px; }
.wealth-path::before { content: ""; position: absolute; left: 10%; right: 10%; top: 15px; height: 1px; background: linear-gradient(90deg, var(--brass-light), var(--brass)); }
.wealth-path li { position: relative; text-align: center; }
.wealth-path a { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--navy); }
.wealth-path a::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 1px solid var(--brass-light); box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 30px var(--brass-light); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.wealth-path a:hover::before { transform: scale(1.12); box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 30px var(--brass); }
.wealth-path a:hover span { color: var(--brass); }
.wealth-path span { max-width: 160px; transition: color 0.3s ease; }

/* Service cards */
.service-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card .service-num { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brass); }
.service-card .card-link { align-self: end; justify-self: start; margin-top: 4px; font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.service-card .card-link span { display: inline-block; color: var(--brass); transition: transform 0.3s var(--ease); }
.service-card:hover .card-link span { transform: translateX(4px); }
.service-card-feature { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.82); }
.service-card-feature h3, .service-card-feature .card-link { color: #fff; }
.service-card-feature > p { color: rgba(255, 255, 255, 0.75) !important; }
.service-card-feature .service-num { color: var(--brass-light); }
.service-card-feature::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, -20%), rgba(214, 182, 123, 0.25), transparent 60%); }
.service-card.is-flash { animation: flash 1.8s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--brass-light), var(--shadow); } 100% { box-shadow: 0 0 0 0 transparent; } }
.service-card { scroll-margin-top: 140px; }

/* Who we serve */
.serve-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.serve-strip img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); }
.persona-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.persona { display: flex; flex-direction: column; padding: 24px 22px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease; }
.persona:hover { border-color: var(--brass-light); background: var(--white); box-shadow: var(--shadow); }
@supports (grid-template-rows: subgrid) {
  .persona-grid { grid-auto-rows: auto; }
  .persona { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
}
.persona-num { font-family: var(--serif); font-size: 0.95rem; color: var(--brass); margin-bottom: 14px; }
.persona h3 { margin-bottom: 8px; font-size: 1.15rem; }
.persona p { margin: 0 0 16px; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.persona-ask { align-self: end; font-size: 0.86rem; font-weight: 600; color: var(--navy); border-top: 1px solid var(--line); padding-top: 12px; }
.persona-ask span { display: inline-block; color: var(--brass); transition: transform 0.3s var(--ease); }
.persona:hover .persona-ask span { transform: translateX(4px); }

/* Adam contact line */
.tax-line { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); }
.tax-line img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.tax-line p { margin: 0; font-size: 0.95rem; }
.tax-line strong { color: #fff; font-weight: 600; }
.tax-line a { color: var(--brass-light); border-bottom: 1px solid rgba(214, 182, 123, 0.4); }

html.motion .serve-strip img[data-reveal-img] { clip-path: inset(0 0 100% 0 round 10px); transition: clip-path 1.15s var(--ease-io); }
html.motion .serve-strip img[data-reveal-img].in { clip-path: inset(0 0 0 0 round 10px); }
html.motion .serve-strip img:nth-child(2) { transition-delay: 0.12s; }
html.motion .serve-strip img:nth-child(3) { transition-delay: 0.24s; }

@media (max-width: 1120px) {
  .persona-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav-menu-wide, .nav-menu-list { display: none; min-width: 0; padding: 4px 0 10px; }
  .main-nav .nav-item.open .nav-menu-wide, .main-nav .nav-item.open .nav-menu-list { display: grid; grid-template-columns: 1fr; }
  .wealth-path { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wealth-path a { font-size: 0.85rem; }
}
@media (max-width: 640px) {
  .svc-tabs { display: flex; }
  .svc-tab { flex: 1; padding: 11px 10px; font-size: 0.9rem; }
  .service-grid-3, .service-grid-2, .persona-grid { grid-template-columns: 1fr; }
  .serve-strip { grid-template-columns: 1fr 1fr; }
  .serve-strip img { height: 150px; }
  .serve-strip img:first-child { grid-column: 1 / -1; }
  .wealth-path { grid-template-columns: 1fr; gap: 10px; text-align: left; }
  .wealth-path::before { left: 15px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto; }
  .wealth-path li { text-align: left; }
  .wealth-path a { flex-direction: row; gap: 14px; font-size: 1rem; }
  .wealth-path span { max-width: none; }
  .tax-line { align-items: flex-start; }
}
@media (max-width: 640px) { .wealth-path { display: none; } }

/* ==================================================================
   v12: David's Oct 27 feedback
   ================================================================== */

/* Year-round band */
.year-allyear {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(90deg, var(--bg), var(--brass-tint) 50%, var(--bg));
  text-align: left;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.year-allyear strong { font-weight: 500; }
.year-allyear-label {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--brass-light);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.year-allyear:hover { border-color: var(--brass-light); box-shadow: var(--shadow); }
.year-allyear[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.year-allyear[aria-selected="true"] .year-allyear-label { border-color: rgba(214, 182, 123, 0.5); color: var(--brass-light); }
.year-track { position: relative; }

/* Contact: stacked office cards beside the map */
.office-grid-stacked { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
.office-stack { display: grid; gap: 16px; }
.office-grid-stacked .map-card { grid-column: auto; position: relative; min-height: 420px; }
.office-grid-stacked .map-card iframe { position: absolute; inset: 0; height: 100%; transition: opacity 0.4s ease; }
.map-card.is-swapping iframe { opacity: 0.35; }
.office-card[data-map] { cursor: pointer; }
.office-card.is-active { border-color: rgba(214, 182, 123, 0.7); background: rgba(255, 255, 255, 0.08); }
.office-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.office-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.office-pin::before { content: ""; width: 7px; height: 7px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: currentColor; }
.office-card.is-active .office-pin { background: var(--brass-light); border-color: var(--brass-light); color: var(--navy); }

@media (max-width: 1120px) {
  .office-grid-stacked { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .year-allyear { margin-bottom: 16px; font-size: 1rem; }
}
@media (max-width: 760px) {
  .office-grid-stacked { grid-template-columns: 1fr; }
  .office-grid-stacked .map-card { min-height: 300px; }
  .year-allyear { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.year-track .year-allyear { position: relative; left: auto; bottom: auto; flex-direction: row; align-items: center; }
@media (max-width: 760px) { .year-track .year-allyear { flex-direction: column; align-items: flex-start; } }

/* ==================================================================
   v13: Service and location pages
   ================================================================== */
.crumbs { display: flex; gap: 8px; margin-bottom: 18px; font-size: 0.82rem; color: var(--muted); }
.crumbs a { color: var(--navy); border-bottom: 1px solid var(--brass-light); }
.page-hero .story-hero-grid { align-items: start; }
.page-hero .hero-actions { margin-top: 30px; }
.nav-col-link { color: inherit; }
.nav-col-link:hover { color: var(--navy); }
.office-name { color: inherit; }
.office-name:hover { color: var(--brass-light); }

.jump-card, .loc-card { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.jump-title, .loc-card-title, .detail-card-title, .loc-people-title { margin: 0 0 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.jump-card ul { display: grid; }
.jump-card a { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.08rem; color: var(--navy); }
.jump-card li:last-child a { border-bottom: 0; }
.jump-card a span { color: var(--brass); transition: transform 0.3s var(--ease); }
.jump-card a:hover span { transform: translateX(4px); }

.details { background: var(--white); }
.detail-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: start; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.detail-row:first-child { border-top: 0; padding-top: 0; }
.detail-row-flip .detail-copy { order: 2; }
.detail-num { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--brass-light); }
.detail-copy h2 { margin-bottom: 20px; }
.detail-copy p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.detail-copy .text-cta { margin-top: 8px; }
.detail-card { position: sticky; top: 110px; padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.detail-card .ticks { border-top: 0; padding-top: 0; gap: 12px; }
.detail-card .ticks li { font-size: 0.97rem; }

.loc-card .loc-addr { margin: 0 0 10px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; color: var(--navy); }
.loc-card p { margin: 0 0 6px; }
.loc-card a:not(.text-cta) { color: var(--navy); }
.loc-phone { font-family: var(--serif); font-size: 1.35rem; color: var(--brass) !important; }
.loc-hours { margin: 10px 0 16px !important; }
.loc-map { position: relative; height: 220px; margin: 0 0 14px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-card-person img { width: 120px; height: 120px; margin-bottom: 18px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--line); }
.loc-note { margin-top: 10px !important; font-size: 0.88rem; color: var(--muted); }

.loc-area { background: var(--bg); }
.loc-area-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: start; }
.loc-area-grid h2 { margin-bottom: 18px; }
.loc-area-text { max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-family: var(--serif); font-style: italic; color: var(--navy); transition: border-color 0.3s ease, background 0.3s ease; }
.chips li:hover { border-color: var(--brass-light); background: var(--brass-tint); }
.loc-people { display: grid; gap: 14px; }
.person-mini { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--ease); }
.person-mini:hover { border-color: var(--brass-light); box-shadow: var(--shadow); transform: translateY(-2px); }
.person-mini img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.person-mini strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--navy); }
.person-mini em { display: block; font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.person-mini small { display: block; margin-top: 2px; font-size: 0.86rem; color: var(--muted); }

.loc-services { background: var(--white); }
.loc-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.loc-svc { position: relative; display: grid; gap: 6px; padding: 24px 52px 24px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; }
.loc-svc strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.loc-svc span { font-size: 0.92rem; color: var(--muted); }
.loc-svc em { position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-style: normal; color: var(--brass); transition: transform 0.3s var(--ease); }
.loc-svc:hover { background: var(--white); border-color: var(--brass-light); box-shadow: var(--shadow); }
.loc-svc:hover em { transform: translateX(4px); }

@media (max-width: 960px) {
  .detail-row, .loc-area-grid { grid-template-columns: 1fr; gap: 28px; }
  .detail-row-flip .detail-copy { order: 0; }
  .detail-card { position: static; }
  .loc-svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .loc-svc-grid { grid-template-columns: 1fr; }
  .detail-row { padding: 44px 0; }
}
.footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.detail-row-flip { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
@media (max-width: 960px) { .detail-row-flip { grid-template-columns: 1fr; } }

/* ==================================================================
   v14: Mobile pass. Phones first: shorter scroll, swipeable card
   rails, a compare table that keeps the Sloan column visible, and
   44px touch targets.
   ================================================================== */
.rail-progress { display: none; }

@media (max-width: 640px) {
  /* Swipeable rails for services and personas */
  .service-grid-3, .service-grid-2, .persona-grid {
    position: relative;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 84%;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .service-grid-3::-webkit-scrollbar, .service-grid-2::-webkit-scrollbar, .persona-grid::-webkit-scrollbar { display: none; }
  .service-grid-3 > *, .service-grid-2 > *, .persona-grid > * { scroll-snap-align: start; }
  .service-card:hover, .persona:hover { transform: none; }

  .rail-progress { display: block; position: relative; height: 2px; margin: 14px auto 0; width: 96px; border-radius: 2px; background: var(--line); overflow: hidden; }
  .rail-progress span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0.2)); background: var(--brass); border-radius: 2px; transition: transform 0.15s linear; }

  /* Compare table: stack each row so the Sloan answer is always on screen */
  .table-wrap { overflow: visible; }
  .compare-table { min-width: 0; font-size: 0.92rem; }
  .compare-table thead { display: none; }
  .compare-table tbody { display: block; }
  .compare-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare-table tbody th { grid-column: 1 / -1; width: auto; padding: 16px 18px 10px; border-bottom: 0; font-weight: 600; }
  .compare-table tbody th:first-child, .compare-table tbody td:nth-child(2) { width: auto; }
  .compare-table tbody td { padding: 10px 18px 16px; }
  .compare-table tbody td::before { content: "Separate pros"; display: block; margin-bottom: 4px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .compare-table tbody td.col-sloan::before { content: "Sloan"; color: var(--brass-light); }
  .compare-table tbody tr:not(:last-child) td:not(.col-sloan) { border-bottom: 1px solid var(--line); }
  .compare-table tbody tr:last-child .col-sloan { border-bottom-right-radius: var(--radius); }

  /* How we work: 2 x 2 instead of four full-width rows */
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .steps p { font-size: 0.9rem; }
  .steps h3 { font-size: 1.12rem; }

  /* Touch targets */
  .utility-links > a, .utility .nav-trigger { display: inline-flex; align-items: center; min-height: 40px; }
  .text-cta, .card-link, .crumbs a { padding-block: 10px; margin-block: -10px; }
  .persona-ask { padding-bottom: 6px; margin-bottom: -6px; }
  .office-pin { padding: 9px 14px; }
  .jump-card a { padding: 14px 0; }

  /* Footer: brand on top, link columns two up, roomier rows */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-note { max-width: none; }
  .site-footer ul { gap: 0; }
  .site-footer ul a { display: inline-block; padding: 8px 0; }
  .legal-links { gap: 0 24px; }
  .legal-links a { display: inline-block; padding: 8px 0; }

  /* Headings a touch tighter so the hero CTA sits higher */
  .story-hero { padding: 40px 0 64px; }
  .hero { padding-top: 32px; }
}

/* ==================================================================
   v15: Family polaroids (David's boys)
   ================================================================== */
.polaroid {
  margin: 0;
  padding: 9px 9px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(20, 41, 59, 0.08), 0 18px 40px rgba(20, 41, 59, 0.18);
  transition: rotate 0.6s var(--ease), scale 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { padding: 8px 4px 10px; font-family: "Caveat", cursive; font-size: 1.25rem; white-space: nowrap; line-height: 1.1; text-align: center; color: var(--navy); }
.polaroid:hover { rotate: 0deg; scale: 1.03; box-shadow: 0 1px 2px rgba(20, 41, 59, 0.08), 0 26px 50px rgba(20, 41, 59, 0.22); }

.about-portrait { position: relative; }
.polaroid-home { position: absolute; right: -16%; bottom: -12%; width: 54%; rotate: 5deg; z-index: 2; }
.about { overflow-x: clip; }

.polaroid-story { width: 82%; margin: 30px auto 0; rotate: -3deg; }

@media (max-width: 960px) {
  .about-portrait { margin-bottom: 40px; }
  .polaroid-home { right: -8%; bottom: -14%; width: 48%; }
  .why-aside .polaroid-story { grid-column: 1 / -1; width: min(62%, 230px); margin: 28px 0 0 8px; }
}
@media (max-width: 640px) {
  .about-portrait { max-width: 280px; }
  .polaroid-home { right: -18%; }
  .polaroid figcaption { font-size: 1.05rem; }
}

/* v16: team photo hero. On phones the status card sits under the photo so it never covers faces. */
@media (max-width: 640px) {
  .hero-photo .hero-card { position: relative; left: auto; right: auto; bottom: auto; margin: -36px 14px 0; }
  .hero-photo::before { inset: 14px -10px 40px 10px; }
}

/* ==================================================================
   v17: Big portrait team cards (Our Story) and photo-led team cards (home)
   ================================================================== */

/* --- Our Story: Tempus-style cards, photo first --- */
.people-grid { gap: 28px; }
.person { padding: 0 0 18px; overflow: hidden; border-radius: 18px; }
.person > :not(.person-photo) { margin-left: 26px; margin-right: 26px; }
.person-photo {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  width: auto;
  margin: 0 0 24px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: var(--bg);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease);
}
.person-photo.is-tilting { transition: transform 0.12s linear; }
.person-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: center 22%;
  transition: scale 1.2s var(--ease), filter 0.6s ease;
}
.person:hover .person-photo img { scale: 1.06; }
/* soft light that follows the pointer, plus a navy fade for the chips */
.person-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.person:hover .person-photo::before { opacity: 1; }
.person-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 41, 59, 0.55), transparent);
}
.person-place {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  transition: background 0.3s ease, translate 0.5s var(--ease);
}
.person:hover .person-place { translate: 0 -3px; background: rgba(255, 255, 255, 0.26); }
.person-emoji { z-index: 2; right: 16px; bottom: 14px; width: 50px; height: 50px; font-size: 1.55rem; }
.person h3 { font-size: 1.6rem; }
.person:target .person-photo { box-shadow: none; }

html.motion .person-photo[data-reveal-img] { opacity: 1; scale: 1; clip-path: inset(0 0 100% 0 round 18px 18px 0 0); transition: clip-path 1.15s var(--ease-io), transform 0.5s var(--ease); }
html.motion .person-photo[data-reveal-img].in { clip-path: inset(0 0 0 0 round 18px 18px 0 0); }

@media (max-width: 1120px) and (min-width: 641px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .people-grid { gap: 22px; }
  .person-photo { aspect-ratio: 1 / 1.05; }
  .person > :not(.person-photo) { margin-left: 20px; margin-right: 20px; }
}

/* --- Home: photo-led team cards --- */
.team-grid { gap: 24px; }
a.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 22px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s ease;
}
a.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brass-light); }
a.team-card .team-photo {
  width: auto;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 0 20px;
  border-radius: 0;
  box-shadow: none;
  background: var(--bg-alt);
}
a.team-card .team-photo img { object-position: center 22%; transition: scale 1.2s var(--ease); }
a.team-card:hover .team-photo img { scale: 1.06; }
a.team-card h3, a.team-card .team-role, a.team-card .team-more { margin-left: 24px; margin-right: 24px; }
a.team-card h3 { font-size: 1.4rem; }
a.team-card .team-more { margin-top: 10px; }
html.motion a.team-card .team-photo[data-reveal-img] { opacity: 1; scale: 1; clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease-io); }
html.motion a.team-card .team-photo[data-reveal-img].in { clip-path: inset(0 0 0 0); }

@media (max-width: 640px) {
  .team-grid {
    position: relative;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    gap: 14px;
    margin-inline: -16px;
    padding: 4px 16px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid > * { scroll-snap-align: start; }
  a.team-card:hover { transform: none; }
}
a.team-card h3, a.team-card .team-role, a.team-card .team-more { align-self: stretch; text-align: left; }
a.team-card h3 { margin-bottom: 2px; }

/* v18: desktop hero card hangs off the bottom edge so it never covers the team */
@media (min-width: 641px) {
  .hero-photo { margin-bottom: 48px; }
  .hero-photo .hero-card { left: -28px; bottom: -56px; }
}
