/* ==========================================================================
   TerraFirma Wealth Partners - sitewide chrome
   --------------------------------------------------------------------------
   Design tokens, base reset, and the shared header / mobile menu / footer.
   Linked by every page BEFORE its own <style> block, so any page-specific
   rule still wins. Page-only styling stays inline in that page.
   Extracted from index.html; blog pages additionally load blog.css.
   ========================================================================== */

:root{
  --ivory:#F2F5F1;
  --stone:#E8F0EB;
  --stone-deep:#DCE6DF;
  --ink:#211e19;
  --ink-soft:#4f4a41;
  --ink-mute:#565144;
  --gold:#af8c37;      /* sampled from logo artwork */
  --gold-deep:#8a6d2b;
  --gold-soft:#cfb672;
  --green:#2f4f45;
  --green-mid:#41685b;
  --green-deep:#263c35;
  --line:#D3DFD6;
  --veil-stone:rgba(232,240,235,.72);
  --serif:"Fraunces", Georgia, serif;
  --sans:"Inter", -apple-system, "Helvetica Neue", sans-serif;
  --max:1180px;
  --ease:cubic-bezier(.22,.61,.21,1);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
html{background:var(--ivory);}
body{
  font-family:var(--sans);
  font-weight:400;
  color:var(--ink);
  background:transparent;
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:var(--gold-soft);color:var(--ink);}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
.wrap{max-width:var(--max);margin:0 auto;padding:0 clamp(20px,4vw,48px);}


/* ---------- Reveal animations ---------- */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .9s var(--ease),transform .9s var(--ease);}
.reveal.in{opacity:1;transform:none;}
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}
.reveal.d3{transition-delay:.24s}.reveal.d4{transition-delay:.32s}
.hairline{width:100%;height:1px;background:var(--line);transform:scaleX(0);transform-origin:left;transition:transform 1.4s var(--ease);}

/* Advising tenure. The figure is derived from data-since at run time, so it
   rolls over on its own. .yrs-static is the wording shown when no script
   runs: a start year cannot go stale, whereas a frozen count would. */
.yrs-static{display:none;}

/* The office line wrapped mid-phrase at narrow widths, splitting "9am-5pm PT"
   across two lines. The hours get their own line instead. */
.cta-hours{display:block;margin-top:7px;}


/* ---------- Advisor biography page ---------- */
.bio-page{padding:calc(120px + 6vh) 0 clamp(64px,9vh,104px);
  background:linear-gradient(175deg,var(--stone) 0%,var(--ivory) 62%);}
.bio-page h1{
  font-family:var(--serif);font-weight:340;
  font-size:clamp(38px,5.4vw,64px);line-height:1.06;letter-spacing:-.015em;
  margin-bottom:clamp(36px,5vh,56px);
}
.bio-page h1 em{font-style:italic;font-weight:400;color:var(--green);}
.bio-layout{display:grid;grid-template-columns:340px 1fr;gap:clamp(32px,5vw,64px);align-items:start;}
.bio-figure img,.bio-placeholder{
  width:100%;aspect-ratio:900/1125;border-radius:3px;
  background:var(--stone-deep);object-fit:cover;filter:saturate(.92);
}
.bio-placeholder{
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:56px;color:var(--gold-deep);opacity:.5;
  border:1px dashed var(--line);
}
.bio-standfirst{font-family:var(--serif);font-size:clamp(20px,2.1vw,25px);line-height:1.5;color:var(--ink);margin-bottom:26px;}
.bio-text p{color:var(--ink-soft);font-size:17px;line-height:1.85;margin-bottom:22px;}
.bio-facts{list-style:none;margin:32px 0;padding:26px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.bio-facts li{color:var(--ink-soft);font-size:15.5px;padding:6px 0;}
.bio-facts strong{color:var(--ink);font-weight:600;}
.bio-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px;}
@media(max-width:820px){
  .bio-layout{grid-template-columns:1fr;}
  .bio-figure{max-width:300px;}
}

/* ---------- Hero announcement takeover ----------
   Off by default. Adding the class "announce" to <section class="hero">
   swaps the standard hero for the announcement, and removing it puts the
   page back exactly as it was. One edit either way. */
.hero .hero-announce{display:none;}
.hero.announce .hero-announce{display:grid;}
.hero.announce .hero-inner:not(.hero-announce){display:none;}

/* ---------- Hero teaser ----------
   Same mechanism: the class "teaser" on <section class="hero"> shows the
   pre-announcement notice in place of the standing hero. */
.hero .hero-teaser{display:none;}
.hero.teaser .hero-teaser{display:block;}
.hero.teaser .hero-inner:not(.hero-teaser){display:none;}
.hero-teaser h1{font-size:clamp(36px,5vw,64px);max-width:15ch;}
.hero-announce{
  grid-template-columns:1.1fr .9fr;
  gap:clamp(28px,4.5vw,64px);
  align-items:center;
  max-width:1120px;
}
.hero-announce .announce-photo{margin:0;}
.hero-announce .announce-photo img,
.hero-announce .announce-placeholder{
  width:100%;aspect-ratio:900/1125;border-radius:3px;
  background:var(--stone-deep);object-fit:cover;filter:saturate(.92);
}
.hero-announce .announce-placeholder{
  display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:64px;color:var(--gold-deep);opacity:.5;
  border:1px dashed var(--line);
}
.hero-announce h1{font-size:clamp(36px,4.6vw,60px);}
.hero-announce .announce-role,.bio-credential{
  font-size:13px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-mute);margin:-14px 0 26px;
}
.hero-announce h1 sup,.bio-page h1 sup,.announce-role sup,.bio-credential sup{
  font-size:.55em;vertical-align:super;line-height:0;letter-spacing:0;
}
.hero-announce .lede{margin-bottom:34px;}
@media(max-width:860px){
  .hero-announce{grid-template-columns:1fr;}
  .hero-announce .announce-photo{max-width:260px;order:-1;}
}

/* ---------- Announcement chip ---------- */
.announce-chip{
  display:inline-block;
  border:1px solid var(--gold);background:var(--ivory);color:var(--gold-deep);
  font:500 13px/1 var(--sans);letter-spacing:.04em;
  padding:9px 18px;border-radius:999px;margin-bottom:22px;
  transition:background .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease);
}
.announce-chip:hover{background:var(--green);border-color:var(--green);color:var(--ivory);}

/* ---------- Anchor targets ---------- */
/* The header is fixed and 96px tall, so an anchor jump used to land with the
   heading hidden behind it. Every in-page link in the nav and the mobile menu
   goes to one of these, plus #main from the skip link. */
section[id],main[id],article[id]{scroll-margin-top:112px;}


/* ---------- Monthly letter signup ---------- */
/* Posts straight to Mailchimp, so it works with scripting off. Mailchimp
   marks FNAME and LNAME required on this audience; dropping either would be
   rejected server side after the reader had already submitted. */
.signup{background:var(--stone);border-top:1px solid var(--line);}
.signup .wrap{max-width:660px;text-align:center;}
.signup .kicker{justify-content:center;}
.signup .kicker::before{display:none;}
.signup h2{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(26px,3vw,38px);line-height:1.15;letter-spacing:-.01em;
  margin-bottom:16px;
}
.signup-lede{color:var(--ink-soft);font-size:16.5px;line-height:1.7;margin:0 auto 30px;max-width:52ch;}
.signup-form{text-align:left;}
.signup-row{display:flex;gap:16px;}
.signup-field{flex:1;margin-bottom:16px;}
.signup-field label{
  display:block;margin-bottom:7px;
  font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-mute);
}
.signup-field input,.signup-field textarea{
  width:100%;padding:13px 15px;
  border:1px solid var(--line);border-radius:2px;
  background:var(--ivory);color:var(--ink);
  font:16px var(--sans);line-height:1.5;
  transition:border-color .25s var(--ease);
}
.signup-field textarea{resize:vertical;min-height:140px;}
.signup-field input:hover,.signup-field textarea:hover{border-color:var(--gold-soft);}
.signup-field input:focus,.signup-field textarea:focus{border-color:var(--gold-deep);}
.signup .btn{width:100%;margin-top:4px;cursor:pointer;border:0;}
.signup-note{margin-top:16px;font-size:13px;color:var(--ink-mute);text-align:center;}
/* Mailchimp's bot trap: off-screen, never announced, never focusable. */
.signup-trap{position:absolute;left:-5000px;}
@media(max-width:560px){
  .signup-row{display:block;}
}


/* ---------- Skip link and focus ring ---------- */
/* Two-tone on purpose: the ink outline carries the light backgrounds, the
   gold halo carries the ink footer and the green bands. At least one layer
   clears 3:1 against every surface on the site. */
:focus-visible{
  outline:2px solid var(--ink);
  outline-offset:2px;
  box-shadow:0 0 0 4px var(--gold-soft);
  border-radius:2px;
}
/* main is focused programmatically by the skip link; it needs no ring. */
main:focus,main:focus-visible{outline:none;box-shadow:none;}

.skip-link{
  position:fixed;top:0;left:0;z-index:300;
  padding:12px 22px;
  background:var(--ink);color:var(--ivory);
  font:500 14.5px/1 var(--sans);letter-spacing:.02em;
  text-decoration:none;border-radius:0 0 4px 0;
  transform:translateY(-130%);
  transition:transform .18s var(--ease);
}
.skip-link:focus{transform:translateY(0);}
.in .hairline, .hairline.in{transform:scaleX(1);}
@media (prefers-reduced-motion: reduce){
  .reveal,.hairline{opacity:1;transform:none;transition:none;}
  html{scroll-behavior:auto;}
}



/* ---------- Fixed photographic backdrop ----------
   Absent at the top of the page; rises and fades in as the hero leaves,
   then holds position while everything scrolls over it. Reverses exactly
   on the way back up because opacity is a pure function of scrollY.
   Shadow-lifted at build time so body copy clears WCAG AA over the darkest
   part of the photograph — see documents/README or the commit message. */
.site-bg{
  position:fixed;top:0;left:0;width:100%;
  aspect-ratio:588/322;
  z-index:-1;opacity:0;pointer-events:none;
  background:url("site-bg.webp") center top/100% auto no-repeat;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 54%,transparent 100%);
          mask-image:linear-gradient(to bottom,#000 0%,#000 54%,transparent 100%);
  will-change:opacity,transform;
}


/* On a phone the natural 588:322 box is only ~215px tall — too slight to
   register. Switch to a cover-filled band so the backdrop still reads. */
@media(max-width:760px){
  .site-bg{aspect-ratio:auto;height:64vh;background-size:cover;background-position:center 28%;}
}

/* ---------- Header ---------- */
header{
  position:fixed;inset:0 0 auto 0;z-index:100;
  transition:background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding:22px 0;
}
header.scrolled{
  background:rgba(242,245,241,.92);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:0 1px 0 var(--line);
  padding:14px 0;
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.brand{display:flex;align-items:center;line-height:1;flex:none;}
.brand .logo-long{height:48px;width:auto;max-width:none;aspect-ratio:1562/390;object-fit:contain;flex:none;transition:height .4s var(--ease);}
header.scrolled .brand .logo-long{height:40px;}
footer .brand .logo-long{height:52px;}
nav.links{display:flex;gap:clamp(18px,2.2vw,32px);font-size:14.5px;font-weight:450;color:var(--ink-soft);}
nav.links a{position:relative;padding:4px 0;white-space:nowrap;}
nav.links a::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:right;transition:transform .35s var(--ease);}
nav.links a:hover::after{transform:scaleX(1);transform-origin:left;}
.nav-cta{display:flex;align-items:center;gap:22px;}
.phone{font-size:14px;color:var(--ink-soft);font-weight:450;white-space:nowrap;}
.btn{
  display:inline-block;font-family:var(--sans);font-size:14.5px;font-weight:500;
  letter-spacing:.02em;padding:13px 26px;border-radius:2px;white-space:nowrap;
  transition:background .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease),transform .3s var(--ease);
  cursor:pointer;border:1px solid transparent;
}
.btn-gold{background:var(--gold-deep);color:var(--ivory);}
.btn-gold:hover{background:var(--green);}
.btn-ghost{border-color:var(--ink);color:var(--ink);background:transparent;}
.btn-ghost:hover{background:var(--green);border-color:var(--green);color:var(--ivory);}
.btn-ghost.on-dark{border-color:rgba(250,248,244,.45);color:var(--ivory);}
.btn-ghost.on-dark:hover{background:var(--ivory);color:var(--ink);}
@media(max-width:1500px){.phone{display:none;}}
@media(max-width:1100px){nav.links,.phone{display:none;}}


/* ---------- Mobile menu ---------- */
.menu-btn{
  display:none;flex-direction:column;justify-content:center;align-items:center;gap:6px;
  width:44px;height:44px;background:none;border:0;cursor:pointer;flex:none;
}
.menu-btn span{display:block;width:24px;height:2px;background:var(--ink);transition:transform .35s var(--ease),opacity .25s var(--ease);}
body.menu-open .menu-btn span:nth-child(1){transform:translateY(8px) rotate(45deg);}
body.menu-open .menu-btn span:nth-child(2){opacity:0;}
body.menu-open .menu-btn span:nth-child(3){transform:translateY(-8px) rotate(-45deg);}
@media(max-width:1100px){.menu-btn{display:flex;}}
.mnav{
  position:fixed;inset:0;z-index:99;background:var(--ivory);
  /* visibility, not just opacity: an opacity:0 panel keeps its links in the
     tab order, so a keyboard user would tab into the closed menu. The 0s
     delay holds it visible until the fade finishes on the way out. */
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .4s var(--ease), visibility 0s linear .4s;
  overflow-y:auto;padding:110px clamp(24px,7vw,48px) 48px;
}
body.menu-open .mnav{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .4s var(--ease), visibility 0s;}
.mnav nav{display:flex;flex-direction:column;}
.mnav nav a{
  font-family:var(--serif);font-weight:400;font-size:clamp(26px,6.5vw,32px);
  letter-spacing:-.01em;padding:16px 0;border-bottom:1px solid var(--line);
  opacity:0;transform:translateY(14px);
  transition:opacity .5s var(--ease),transform .5s var(--ease);
}
body.menu-open .mnav nav a{opacity:1;transform:none;}
.mnav nav a:nth-child(1){transition-delay:.05s}.mnav nav a:nth-child(2){transition-delay:.09s}
.mnav nav a:nth-child(3){transition-delay:.13s}.mnav nav a:nth-child(4){transition-delay:.17s}
.mnav nav a:nth-child(5){transition-delay:.21s}.mnav nav a:nth-child(6){transition-delay:.25s}
.mnav nav a:nth-child(7){transition-delay:.29s}.mnav nav a:nth-child(8){transition-delay:.33s}
.mnav nav a:nth-child(9){transition-delay:.37s}
.mnav nav a:nth-child(10){transition-delay:.41s}
.mnav-foot{margin-top:36px;display:flex;flex-direction:column;gap:20px;align-items:flex-start;
  opacity:0;transition:opacity .5s var(--ease) .42s;}
body.menu-open .mnav-foot{opacity:1;}
.mnav-phone{font-size:16px;color:var(--ink-soft);}
@media (prefers-reduced-motion: reduce){
  .mnav,.mnav nav a,.mnav-foot,.menu-btn span{transition:none;}
  .mnav nav a{transform:none;}
}
@media(max-width:560px){
  .brand .logo-long{height:36px;}
  .nav-cta .btn{display:none;}
  .nav-cta{gap:10px;}
  body{overflow-x:hidden;}
}


/* ---------- Kicker ---------- */
.kicker{
  font-size:12.5px;letter-spacing:.26em;text-transform:uppercase;
  color:var(--green-mid);font-weight:600;margin-bottom:28px;
  display:flex;align-items:center;gap:14px;
}
.kicker::before{content:"";width:36px;height:1px;background:var(--gold);}
.kicker{transition:letter-spacing 1.4s var(--ease);}
.reveal.kicker:not(.in), .reveal:not(.in) .kicker{letter-spacing:.1em;}

/* ---------- Scroll progress bar ---------- */
#scroll-progress{
  position:fixed;top:0;left:0;height:4px;width:0;z-index:200;
  background:linear-gradient(90deg,var(--gold-deep),var(--gold));
  box-shadow:0 1px 3px rgba(175,140,55,.35);
  pointer-events:none;
}
@media (prefers-reduced-motion: reduce){#scroll-progress{display:none;}}

/* ---------- Footer ---------- */
footer{background:var(--ink);color:rgba(250,248,244,.72);padding:72px 0 40px;font-size:14.5px;}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:clamp(32px,4vw,64px);margin-bottom:56px;}
.foot-tag{margin-top:18px;max-width:320px;line-height:1.7;color:rgba(250,248,244,.55);font-size:14px;}
.foot-social{margin-top:16px;font-size:13.5px;display:flex;gap:10px;}
.foot-social a{color:var(--gold-soft);}
.foot-social a:hover{color:var(--ivory);}
.foot-social span{color:rgba(250,248,244,.35);}
.foot-col h3{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-soft);font-weight:600;margin-bottom:18px;}
.foot-col a,.foot-col span{display:block;padding:5px 0;color:rgba(250,248,244,.72);transition:color .3s;}
.foot-col a:hover{color:var(--ivory);}
.foot-legal{
  border-top:1px solid rgba(250,248,244,.14);padding-top:28px;
  font-size:12.5px;line-height:1.7;color:rgba(250,248,244,.55);
}
.foot-legal-top{margin-bottom:22px;}
.foot-disc p{margin-bottom:13px;font-size:12px;line-height:1.75;color:rgba(250,248,244,.55);}
.foot-disc a{text-decoration:underline;}
.foot-disc a:hover{color:rgba(250,248,244,.7);}
@media(max-width:860px){.foot-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:520px){.foot-grid{grid-template-columns:1fr;}}
