/* Faithful Transactions -- shared stylesheet, all 5 pages.
   Extracted from the original single-page mockup. Any component here is
   used on 2+ pages; page-only tweaks live in a <style> block on that page
   only if truly one-off (there currently are none). */

:root{
  --navy:#1E3352;
  --ink:#141F33;
  --taupe:#A98F6E;
  --taupe-soft:#CBB79A;
  --linen:#F7F4EF;
  --white:#FFFFFF;
  --serif:'Cormorant Garamond', Georgia, serif;
  --script:'Great Vibes', cursive;
  --sans:'Jost', 'Segoe UI', sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{overflow-x:hidden;}
body{
  font-family:var(--sans);
  font-weight:300;
  color:var(--ink);
  background:var(--white);
  line-height:1.7;
  font-size:1.0625rem;
}
a{color:inherit;}
img{max-width:100%;display:block;}

/* ---------- utility ---------- */
.wrap{max-width:1080px;margin:0 auto;padding:0 1.5rem;}
.eyebrow{
  font-family:var(--script);
  font-size:2rem;
  color:var(--taupe);
  display:inline-block;
  margin-bottom:.25rem;
}
h2{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--navy);
  position:relative;
  line-height:1.25;
}
.ghost{position:relative;}
.ghost::before{
  content:attr(data-ghost);
  font-family:var(--script);
  text-transform:none;
  font-size:2.1em; /* anchored to the h2's own size, not the viewport */
  max-width:60%;
  color:var(--navy);
  opacity:.085;
  position:absolute;
  left:-.08em;
  bottom:-.08em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  pointer-events:none;
}
.roofline{
  display:flex;
  align-items:center;
  gap:.9rem;
  margin:1.1rem 0 1.6rem;
}
.roofline::before{
  content:"";
  width:52px;height:26px;
  border-left:1.5px solid var(--taupe);
  border-top:1.5px solid var(--taupe);
  transform:skewX(-38deg) translateX(8px);
}
.roofline::after{
  content:"";
  flex:0 0 90px;
  height:1.5px;
  background:var(--taupe);
  opacity:.6;
}
.btn{
  display:inline-block;
  font-family:var(--sans);
  font-weight:400;
  font-size:.85rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  text-decoration:none;
  padding:1rem 2.4rem;
  border:1px solid var(--taupe);
  color:var(--taupe-soft);
  background:transparent;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:color .3s ease;
}
.btn::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--taupe);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .35s cubic-bezier(.65,.05,.36,1);
  z-index:-1;
}
.btn:hover::before, .btn:focus-visible::before{transform:scaleX(1);}
.btn:hover, .btn:focus-visible{color:var(--white);}
.btn-dark{color:var(--navy);border-color:var(--navy);}
.btn-dark::before{background:var(--navy);}
:focus-visible{outline:2px solid var(--taupe);outline-offset:3px;}

/* ---------- animation primitives ---------- */
/* Handwriting reveal: soft-edged wipe following the pen */
.js .write{
  clip-path:inset(-30% 102% -30% -2%);
}
.js .write.on{
  clip-path:inset(-30% -8% -30% -2%);
  transition:clip-path 1.7s cubic-bezier(.5,.05,.35,1);
}
/* Scroll reveal */
.js [data-reveal]{
  opacity:0;
  transform:translateY(26px);
}
/* Off-screen slide-ins: same reveal system, larger directional displacement.
   Must come before the .on rule below -- equal specificity, so source order
   decides, and .on (the "settled" state) has to win the cascade. */
.js [data-reveal][data-dir="left"]{transform:translateX(-90px);}
.js [data-reveal][data-dir="right"]{transform:translateX(90px);}
.js [data-reveal][data-dir="up"]{transform:translateY(70px);}
.js [data-reveal].on{
  opacity:1;
  transform:none;
  transition:opacity .9s ease var(--d,0s), transform .9s cubic-bezier(.25,.75,.35,1) var(--d,0s);
}
/* Roofline draws in when its container reveals */
.js [data-reveal] .roofline::before{
  opacity:0;
  transition:opacity .5s ease .9s;
}
.js [data-reveal] .roofline::after{
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .9s cubic-bezier(.6,.05,.3,1) 1s;
}
.js [data-reveal].on .roofline::before{opacity:1;}
.js [data-reveal].on .roofline::after{transform:scaleX(1);}
/* Eyebrows write out inside revealed headers */
.js [data-reveal] .eyebrow{clip-path:inset(-35% 102% -35% -2%);}
.js [data-reveal].on .eyebrow{
  clip-path:inset(-35% -10% -35% -2%);
  transition:clip-path 1.5s cubic-bezier(.5,.05,.35,1) .15s;
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation:none!important;transition:none!important;}
  .js .write, .js [data-reveal], .js [data-reveal] .eyebrow{clip-path:none;opacity:1;transform:none;}
  .js [data-reveal] .roofline::before{opacity:1;}
  .js [data-reveal] .roofline::after{transform:none;}
}

/* ---------- nav ---------- */
header{position:absolute;top:0;left:0;right:0;z-index:30;}
.nav{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:1.4rem 0;
  position:relative;
}
.nav-left{display:flex;align-items:center;gap:2rem;}
.nav-brand{
  font-family:var(--serif);
  font-size:1.05rem;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--white);
  text-decoration:none;
  white-space:nowrap;
}
.nav-brand .amp{color:var(--taupe-soft);}
.btn-nav-cta{
  padding:.6rem 1.4rem;
  font-size:.72rem;
  letter-spacing:.22em;
  white-space:nowrap;
  flex-shrink:0;
}
@media (max-width:480px){
  .nav-left{gap:.9rem;}
  .nav-brand{font-size:.68rem;letter-spacing:.09em;}
}
.nav-links{display:flex;gap:2.2rem;list-style:none;margin-left:auto;}
@media (max-width:1150px){
  .nav-links{gap:1.3rem;}
}
.nav-links a{
  display:inline-block;
  font-size:.78rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  text-decoration:none;
  color:rgba(255,255,255,.85);
  background:none;
  border:none;
  cursor:pointer;
  font-family:var(--sans);
  padding-bottom:.35rem;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}
.nav-links a:hover{color:var(--taupe-soft);}
.nav-links a.active{
  color:var(--white);
  border-bottom-color:var(--taupe-soft);
}
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:32px;
  height:32px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:20;
}
.nav-toggle span{
  width:100%;
  height:1.5px;
  background:var(--white);
  transition:transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg);}
@media (max-width:860px){
  .nav-toggle{display:flex;margin-left:auto;}
  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:-1.5rem;
    right:-1.5rem;
    flex-direction:column;
    align-items:center;
    gap:0;
    background:var(--ink);
    box-shadow:0 12px 24px rgba(0,0,0,.25);
    margin-left:0;
  }
  .nav-links.open{display:flex;}
  .nav-links li{width:100%;}
  .nav-links a{display:block;padding:1.1rem 0;text-align:center;border-bottom:none;}
  .nav-links a.active{border-bottom:none;background:rgba(255,255,255,.05);}
}
@media (max-width:400px){
  .nav-left{gap:1rem;}
  .btn-nav-cta{padding:.5rem 1rem;font-size:.66rem;letter-spacing:.12em;}
}

/* ---------- framed portrait (arch hairline draws on, photo fades in) ----------
   Used in: contact.html (founder portrait), about.html (founder portrait). */
.portrait-frame{
  width:150px;
  margin:0 auto 1.3rem;
  display:block;
  overflow:visible;
}
.portrait-frame image{
  opacity:0;
}
.portrait-frame .frame-stroke{
  fill:none;
  stroke:var(--taupe);
  stroke-width:2;
  stroke-dasharray:var(--flen,0);
  stroke-dashoffset:var(--flen,0);
}
.js .portrait-frame .frame-stroke{
  transition:stroke-dashoffset 1.6s cubic-bezier(.5,.05,.35,1);
}
.js .portrait-frame image{
  transition:opacity .8s ease .9s;
}
.js .portrait-frame.on .frame-stroke{stroke-dashoffset:0;}
.js .portrait-frame.on image{opacity:1;}
@media (prefers-reduced-motion: reduce){
  .portrait-frame .frame-stroke{stroke-dashoffset:0!important;}
  .portrait-frame image{opacity:1!important;}
}
.portrait-frame--lg{width:230px;margin:0 auto;}
.portrait-caption{text-align:center;margin-top:.7rem;}
.portrait-caption-script{font-family:var(--script);font-size:1.7rem;color:var(--taupe-soft);}
.portrait-caption-title{
  font-size:.68rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
  margin-top:.3rem;
}
/* On light (linen/white) section backgrounds instead of navy -- about.html's portrait sits in .section-linen */
.portrait-caption--dark .portrait-caption-script{color:var(--taupe);}
.portrait-caption--dark .portrait-caption-title{color:var(--ink);opacity:.6;}

/* ---------- hero (home only) ---------- */
.hero{
  padding:0; /* override the generic section{padding:5.5rem 0} rule -- hero-inner handles its own spacing */
  min-height:100vh;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(169,143,110,.16), transparent 55%),
    linear-gradient(175deg, var(--navy) 0%, var(--ink) 100%);
  color:var(--white);
  display:flex;
  align-items:flex-start;
  position:relative;
  overflow:hidden;
}
.hero-inner{
  padding:7.5rem 0 2rem;
  max-width:640px;
  position:relative;
  z-index:2;
}
/* Hero mark: clean alpha-preserving raster (house/monogram), soft sweep reveal.
   Was a traced inline SVG; potrace's bitmap threshold binarized the script F's
   antialiased edges into a jagged/pixelated outline. A raster keeps each edge
   pixel's true partial alpha so it blends into the navy background. */
.hero-mark{
  width:min(150px, 32vw);
  height:auto;
  margin:0 0 1rem;
  display:block;
  clip-path:inset(0 100% 0 0);
}
.js .hero-mark{
  transition:clip-path 1.6s cubic-bezier(.5,.05,.35,1);
}
.js .hero-mark.on{
  clip-path:inset(0 0 0 0);
}
@media (prefers-reduced-motion: reduce){
  .hero-mark{clip-path:inset(0 0 0 0)!important;}
}
.hero h1{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(1.9rem, 5.4vw, 3.8rem);
  letter-spacing:.2em;
  text-transform:uppercase;
  line-height:1.2;
}
/* Header letters rise in one by one; words stay intact via .word wrapper (see utility below) */
.hero h1 .ltr{
  display:inline-block;
  opacity:0;
  transform:translateY(.5em) rotate(3deg);
}
.js-done .hero h1 .ltr, .no-js .hero h1 .ltr{opacity:1;transform:none;}
.hero h1 .ltr.on{
  opacity:1;
  transform:none;
  transition:opacity .5s ease, transform .6s cubic-bezier(.2,.9,.3,1.2);
}
.hero h1 .thin{
  display:block;
  font-size:.36em;
  letter-spacing:.14em;
  color:var(--taupe-soft);
  margin-top:.6rem;
  font-weight:400;
}
.hero-tag{
  font-family:var(--script);
  font-size:clamp(1.4rem, 3.2vw, 2.1rem);
  color:var(--taupe-soft);
  margin:1rem 0 .8rem;
}
.hero p.lede{
  color:rgba(255,255,255,.78);
  max-width:46ch;
  margin-bottom:1.4rem;
}
.hero-cta{display:flex;gap:1.1rem;flex-wrap:wrap;}
.fade-up{animation:fadeUp .9s ease both;}
.fade-up.d3{animation-delay:2.2s;}
.fade-up.d4{animation-delay:2.5s;}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(18px);}
  to{opacity:1;transform:translateY(0);}
}
@media (prefers-reduced-motion: reduce){
  .hero h1 .ltr{opacity:1;transform:none;}
}

/* ---------- inner-page hero band (about/services/agent-tools/contact) ----------
   Same navy gradient + typographic scale as the home hero's headline, minus
   the drawn logo mark and dual CTA -- gives the nav a dark backdrop to sit on
   (nav text is white-on-transparent) and a consistent page-title moment. */
.page-hero{
  padding:9.5rem 0 4rem;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(169,143,110,.16), transparent 55%),
    linear-gradient(175deg, var(--navy) 0%, var(--ink) 100%);
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.page-hero .eyebrow{color:var(--taupe-soft);}
.page-hero h1{
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(2rem, 4.6vw, 3.1rem);
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1.3;
}
.page-hero p.lede{color:rgba(255,255,255,.78);max-width:56ch;margin-top:1.1rem;}

/* ---------- word-integrity + fluid-fit utility ----------
   Any large display text (hero h1, section h2s, script tagline) wraps each
   word in .word (white-space:nowrap) so lines only break at real spaces,
   never mid-word. JS below measures the widest word and shrinks font-size
   until it fits its container -- clamp() alone can't guarantee that at
   every viewport/content combination. */
.word{white-space:nowrap;display:inline-block;}
@media (max-width:480px){
  .hero h1, .page-hero h1{letter-spacing:.12em;}
  h2{letter-spacing:.1em;}
}

/* ---------- sections ---------- */
section{padding:5.5rem 0;}
.section-linen{background:var(--linen);}
.split{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:4rem;
  align-items:center;
}
@media (max-width:820px){
  .split{grid-template-columns:1fr;gap:2.4rem;}
}
.measure{max-width:56ch;}
.measure p + p{margin-top:1.1rem;}

.stat-panel{
  background:var(--navy);
  color:var(--white);
  padding:3rem 2.6rem;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.stat-panel::after{
  content:"F";
  font-family:var(--script);
  font-size:20rem;
  color:var(--white);
  opacity:.03;
  position:absolute;
  right:-2rem;
  bottom:-6rem;
  line-height:1;
  pointer-events:none;
}
.stat-panel .num{
  font-family:var(--serif);
  font-size:3.4rem;
  line-height:1;
  color:var(--taupe-soft);
}
.stat-panel .lbl{
  font-size:.8rem;
  letter-spacing:.26em;
  text-transform:uppercase;
  margin-top:.6rem;
  color:rgba(255,255,255,.75);
}
.stat-panel hr{
  border:none;height:1px;
  background:rgba(255,255,255,.18);
  margin:2rem auto;width:60%;
}

.about-visual{display:flex;flex-direction:column;gap:1.75rem;}

/* ---------- framed photos ---------- */
.photo-slot{
  background:var(--linen);
  border:1px solid var(--taupe);
  min-height:300px;
  position:relative;
  overflow:hidden;
}
.photo-slot img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.photo-slot::before{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid var(--taupe-soft);
  pointer-events:none;
  z-index:2;
}
.photo-slot--wide{min-height:380px;margin-top:3.2rem;}

/* ---------- services teaser grid (home) ---------- */
.svc-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  margin-top:3rem;
}
@media (max-width:820px){
  .svc-grid{grid-template-columns:1fr;}
}
.svc{
  display:block;
  text-decoration:none;
  color:inherit;
  padding:2.2rem 2rem 2.4rem;
  border-left:1px solid rgba(30,51,82,.14);
  transition:background .35s ease, transform .35s ease;
}
.svc:first-child{border-left:none;}
.svc:hover{background:var(--linen);transform:translateY(-4px);}
@media (max-width:820px){
  .svc{border-left:none;border-top:1px solid rgba(30,51,82,.14);}
  .svc:first-child{border-top:none;}
}
.svc .glyph{
  font-family:var(--script);
  font-size:2.6rem;
  color:var(--taupe);
  line-height:1;
  margin-bottom:1rem;
  transition:transform .35s cubic-bezier(.2,.9,.3,1.4);
}
.svc:hover .glyph{transform:scale(1.18) rotate(-4deg);}
.svc h3{
  font-family:var(--serif);
  font-weight:600;
  font-size:1.25rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--navy);
  margin-bottom:.8rem;
  line-height:1.35;
}
.svc p{font-size:.98rem;color:#3d4a61;}
.svc .svc-more{
  display:inline-block;
  margin-top:1rem;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--taupe);
}
.svc ul{margin-top:.9rem;list-style:none;font-size:.95rem;color:#3d4a61;}
.svc li{padding-left:1.2rem;position:relative;margin-top:.4rem;}
.svc li::before{
  content:"";
  position:absolute;left:0;top:.62em;
  width:.45rem;height:.45rem;
  border-right:1.5px solid var(--taupe);
  border-bottom:1.5px solid var(--taupe);
  transform:rotate(-45deg);
}

/* ---------- services.html: full-section pattern ----------
   Each service is one full section using this same markup shape, so adding
   a new service later is just: copy a .svc-section block, change the copy. */
.svc-section{border-top:1px solid rgba(30,51,82,.1);}
.svc-section:first-of-type{border-top:none;}
.svc-row{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2.6rem;
  align-items:start;
}
@media (max-width:600px){
  .svc-row{grid-template-columns:1fr;}
}
.svc-row .glyph{
  font-family:var(--script);
  font-size:4rem;
  color:var(--taupe);
  line-height:1;
}
.svc-row .svc-deliverables{margin-top:1.4rem;list-style:none;font-size:.98rem;color:#3d4a61;}
.svc-row .svc-deliverables li{padding-left:1.3rem;position:relative;margin-top:.55rem;}
.svc-row .svc-deliverables li::before{
  content:"";
  position:absolute;left:0;top:.62em;
  width:.5rem;height:.5rem;
  border-right:1.5px solid var(--taupe);
  border-bottom:1.5px solid var(--taupe);
  transform:rotate(-45deg);
}
.svc-who{
  margin-top:1.5rem;
  font-family:var(--serif);
  font-style:italic;
  font-size:1.05rem;
  color:var(--taupe);
}

/* ---------- agent-tools.html: resource list + clipboard illustration ---------- */
.clipboard-art{width:min(150px, 40vw);margin:0 auto 1rem;display:block;}
.resource-list{margin-top:2.6rem;display:flex;flex-direction:column;}
.resource-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.5rem;
  padding:1.5rem 0;
  border-top:1px solid rgba(30,51,82,.12);
}
.resource-list .resource-item:last-child{border-bottom:1px solid rgba(30,51,82,.12);}
.resource-item h3{
  font-family:var(--serif);
  font-weight:600;
  font-size:1.15rem;
  letter-spacing:.06em;
  color:var(--navy);
}
.resource-tag{
  flex-shrink:0;
  font-size:.68rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--taupe);
  border:1px solid var(--taupe);
  padding:.45rem .9rem;
  white-space:nowrap;
}

/* ---------- inquiry section (form + signature) -- every page ---------- */
/* Clears the absolute-positioned header on an anchor jump (in-page or
   cross-page) to #inquire, so the section heading never lands tucked
   behind the nav -- header is ~88px tall, plus a little breathing room. */
#inquire{scroll-margin-top:110px;}
.contact-panel{
  background:
    radial-gradient(ellipse at 15% 85%, rgba(169,143,110,.14), transparent 50%),
    linear-gradient(190deg, var(--navy), var(--ink));
  color:var(--white);
  position:relative;
  overflow:hidden;
}
/* Only clears the absolute-positioned header/nav when this is the first
   section on the page (contact.html) -- on the other 4 pages the inquiry
   section sits mid/end-of-page, well past where the header overlays. */
.contact-panel:first-of-type{padding-top:9.5rem;}
.contact-panel .wrap{position:relative;}
.contact-panel .eyebrow{color:var(--taupe-soft);}
.contact-panel h2{color:var(--white);}
.contact-panel .ghost::before{color:var(--white);opacity:.09;}
.contact-panel p.sub{color:rgba(255,255,255,.75);max-width:52ch;margin-top:1rem;}
.contact-head-row{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:3rem;
  align-items:start;
}
@media (max-width:820px){
  .contact-head-row{grid-template-columns:1fr;}
  .contact-portrait{margin-top:2.4rem;}
}
.contact-info{display:flex;flex-wrap:wrap;gap:1.2rem 2.5rem;margin-top:2rem;}
.contact-info-line{
  font-size:1.1rem;
  color:var(--taupe-soft);
  text-decoration:none;
  letter-spacing:.03em;
}
.contact-info-line:hover{text-decoration:underline;}

/* Signature column + form, side by side -- rendered together by
   renderInquirySection() in main.js on every page. */
.inquiry-body-row{
  scroll-margin-top:110px;
  margin-top:2.8rem;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:2.5rem;
  align-items:stretch;
}
@media (max-width:820px){
  .inquiry-body-row{grid-template-columns:1fr;gap:1.5rem;}
}
/* Vertical signature: the same animated stroke-draw script signature,
   rotated -90deg (reads bottom-to-top) as a single unit so
   getTotalLength()/dasharray math (computed pre-rotation, in the SVG's
   own coordinate space) stays correct -- only the CSS transform changes
   orientation. Sized in JS to roughly span the form's rendered height via
   the --sig-h custom property (grows short lines, shrinks long ones,
   rather than one fixed font-size for every page's different-length
   line). Below 820px it un-rotates into a horizontal line above the form
   -- a narrow rotated column reads as cramped next to a stacked form. */
.sig-vertical-wrap{
  width:90px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
@media (max-width:820px){
  .sig-vertical-wrap{width:100%;}
}
.pull-quote-svg{
  overflow:visible;
  display:block;
}
.sig-vertical-wrap .pull-quote-svg{
  width:var(--sig-h, 340px);
  flex-shrink:0;
  transform:rotate(-90deg);
}
@media (max-width:820px){
  .sig-vertical-wrap .pull-quote-svg{
    width:100%;
    max-width:420px;
    margin:0 auto;
    transform:none;
  }
}
.pull-quote-svg text{
  font-family:var(--script);
  font-size:56px;
  fill:var(--taupe-soft);
  fill-opacity:0;
  stroke:var(--taupe-soft);
  stroke-width:1.2;
  stroke-dasharray:var(--qlen,0);
  stroke-dashoffset:var(--qlen,0);
}
.js .pull-quote-svg text{
  transition:stroke-dashoffset 2.4s cubic-bezier(.5,.05,.35,1), fill-opacity 1s ease 1.9s;
}
.js .pull-quote-svg.on text{
  stroke-dashoffset:0;
  fill-opacity:.9;
}
@media (prefers-reduced-motion: reduce){
  .pull-quote-svg text{stroke-dashoffset:0!important;fill-opacity:.9!important;}
}

form{
  margin-top:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.4rem;
  max-width:860px;
}
@media (max-width:680px){form{grid-template-columns:1fr;}}
.field{display:flex;flex-direction:column;gap:.45rem;}
.field.full{grid-column:1 / -1;}
label{
  font-size:.74rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--taupe-soft);
}
.req{color:var(--taupe);margin-left:.15em;}
.form-legend{
  grid-column:1 / -1;
  font-size:.85rem;
  color:rgba(255,255,255,.55);
  margin:-.6rem 0 .2rem;
}
.form-legend .req{margin-left:0;margin-right:.3em;}
input, select, textarea{
  font-family:var(--sans);
  font-weight:300;
  font-size:1rem;
  color:var(--white);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.22);
  padding:.85rem 1rem;
  transition:border-color .25s ease, background .25s ease;
}
input::placeholder, textarea::placeholder{color:rgba(255,255,255,.35);}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color:var(--taupe);
  background:rgba(255,255,255,.09);
}
select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--taupe-soft) 50%),linear-gradient(135deg, var(--taupe-soft) 50%, transparent 50%);background-position:calc(100% - 18px) 55%, calc(100% - 13px) 55%;background-size:5px 5px;background-repeat:no-repeat;}
select option{color:var(--ink);}
textarea{min-height:130px;resize:vertical;}
.form-actions{grid-column:1 / -1;display:flex;align-items:center;gap:1.4rem;flex-wrap:wrap;margin-top:.4rem;}
.form-note{font-size:.85rem;color:rgba(255,255,255,.5);}
.form-success{
  grid-column:1 / -1;
  display:none;
  border:1px solid var(--taupe);
  padding:1.9rem 1.8rem;
  text-align:center;
}
.form-success .script{font-family:var(--script);font-size:2.2rem;color:var(--taupe-soft);}
.form-success p{color:rgba(255,255,255,.8);margin-top:.4rem;font-size:.95rem;}

/* Honeypot -- absolutely positioned so it's pulled out of the grid flow
   entirely (doesn't consume a column) as well as off-screen. */
.hp-field{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden;}

.field-error{
  font-size:.78rem;
  color:#D98B77;
  margin-top:.35rem;
  display:none;
}
.field.has-error .field-error{display:block;}
.field.has-error input, .field.has-error select, .field.has-error textarea{border-color:#D98B77;}

.form-fail{
  grid-column:1 / -1;
  display:none;
  border:1px solid #D98B77;
  padding:1.2rem 1.4rem;
  color:rgba(255,255,255,.85);
  font-size:.95rem;
}

/* ---------- testimonials ----------
   Rendered from the TESTIMONIALS array in main.js. Ships empty --
   renderTestimonials() inserts nothing into the mount when there's
   nothing to show, so these rules only ever paint once real quotes exist.
   Two contexts share this same card/grid markup: a standalone .section-linen
   band (index.html) and an inline block nested inside .contact-panel
   (contact.html, directly above the form) -- the .contact-panel overrides
   below flip the palette to the navy-context colors for the latter. */
.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:2.6rem;
  margin-top:2.8rem;
}
@media (max-width:820px){
  .testimonial-grid{grid-template-columns:1fr;gap:2rem;}
}
.testimonial-stars{
  display:flex;
  gap:.3rem;
  color:var(--taupe);
  margin-bottom:.9rem;
}
.testimonial-mark{
  font-family:var(--script);
  font-size:2.6rem;
  line-height:1;
  color:var(--taupe);
  margin-bottom:.3rem;
}
.testimonial-quote{
  font-family:var(--serif);
  font-size:1.2rem;
  line-height:1.55;
  color:var(--navy);
}
.testimonial-name{
  margin-top:1.3rem;
  font-size:.78rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--taupe);
}
.testimonial-brokerage{
  font-size:.88rem;
  color:#3d4a61;
  margin-top:.2rem;
}
.testimonial-inline{margin-top:2.8rem;}
.contact-panel .testimonial-stars{color:var(--taupe-soft);}
.contact-panel .testimonial-mark{color:var(--taupe-soft);}
.contact-panel .testimonial-quote{color:var(--white);}
.contact-panel .testimonial-name{color:var(--taupe-soft);}
.contact-panel .testimonial-brokerage{color:rgba(255,255,255,.65);}

/* ---------- footer ---------- */
footer{
  background:var(--ink);
  color:rgba(255,255,255,.7);
  padding:3.2rem 0 2.4rem;
  text-align:center;
  font-size:.92rem;
}
.foot-logo{width:110px;margin:0 auto 1.4rem;}
.foot-logo[hidden]{display:none;}
.foot-wordmark{
  font-family:var(--serif);
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--white);
  font-size:1.1rem;
  margin-bottom:1.2rem;
}
.foot-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:1.6rem;
  list-style:none;
  margin-bottom:1.4rem;
}
.foot-links a{
  font-size:.78rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  text-decoration:none;
  color:rgba(255,255,255,.75);
  background:none;
  border:none;
  cursor:pointer;
  font-family:var(--sans);
}
.foot-links a:hover{color:var(--taupe-soft);}
.foot-contact{display:flex;justify-content:center;gap:2rem;flex-wrap:wrap;margin-bottom:1.6rem;}
.foot-contact a{color:var(--taupe-soft);text-decoration:none;letter-spacing:.06em;}
.foot-contact a:hover{text-decoration:underline;}
.foot-fine{font-size:.78rem;letter-spacing:.14em;color:rgba(255,255,255,.38);text-transform:uppercase;}
