/* ============================================================
   The Essex Will Company — single page styles
   Tokens shared across all sections.
   ============================================================ */
:root{
  --navy:#0E2236;
  --navy-2:#16314A;
  --ivory:#F5F0E6;
  --cloud:#FFFFFF;
  --blue:#1E5BA8;
  --amber:#C8843C;
  --amber-bright:#E0A24E;
  --ink:#15212E;
  --ink-soft:#5A6A78;
  --mut:#9FB0C0;

  --serif:"Libre Caslon Display", Georgia, "Times New Roman", serif;
  --sans:"Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw:1180px;
  --pad:clamp(20px,5vw,64px);
  --radius:14px;
  --shadow-card:0 1px 2px rgba(14,34,54,.06), 0 18px 40px -24px rgba(14,34,54,.28);
  --shadow-soft:0 1px 2px rgba(14,34,54,.05), 0 10px 30px -20px rgba(14,34,54,.25);
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--navy);
  font-size:18px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3{margin:0; line-height:1.08; text-wrap:balance;}
p{margin:0; text-wrap:pretty;}
a{color:inherit;}

.serif{font-family:var(--serif); font-weight:400; letter-spacing:.005em;}

/* focus rings — amber, visible */
:focus-visible{
  outline:3px solid var(--amber-bright);
  outline-offset:2px;
  border-radius:6px;
}
button{font-family:inherit;}

/* ---------- layout helpers ---------- */
.wrap{max-width:var(--maxw); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad);}
.section{position:relative; padding:clamp(52px,7vw,94px) 0;}
.eyebrow{
  font-size:13px; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color:var(--amber); margin:0 0 18px;
}
.eyebrow.on-dark{color:var(--amber-bright);}
.lede{font-size:clamp(18px,2.1vw,21px); color:var(--ink-soft); max-width:62ch;}
.kicker-rule{width:54px; height:2px; background:var(--amber); border:0; margin:0 0 26px;}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:600; font-size:16px; letter-spacing:.01em;
  padding:15px 26px; border-radius:999px; border:1px solid transparent;
  cursor:pointer; text-decoration:none; transition:transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-amber{background:var(--amber); color:#fff; box-shadow:0 10px 24px -12px rgba(200,132,60,.8);}
.btn-amber:hover{background:var(--amber-bright); transform:translateY(-2px);}
.btn-ghost{background:transparent; color:var(--navy); border-color:rgba(14,34,54,.22);}
.btn-ghost:hover{border-color:var(--navy); transform:translateY(-2px);}
.btn-ghost.on-dark{color:#fff; border-color:rgba(255,255,255,.32);}
.btn-ghost.on-dark:hover{border-color:#fff; background:rgba(255,255,255,.06);}
@media (prefers-reduced-motion: reduce){ .btn:hover{transform:none;} }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(14,34,54,.0); transition:background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(13,30,48,.92); backdrop-filter:blur(10px);
  border-bottom-color:rgba(224,162,78,.28);
  box-shadow:0 10px 30px -22px rgba(0,0,0,.6);
}
.nav{display:flex; align-items:center; justify-content:space-between; height:74px;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--navy);
  background:var(--ivory); padding:7px 14px; border-radius:10px;
  border:1px solid rgba(200,132,60,.4); box-shadow:0 8px 22px -12px rgba(0,0,0,.55);}
.brand-mark{
  width:34px; height:34px; flex:none; border-radius:7px;
  display:grid; place-items:center; background:linear-gradient(160deg,var(--amber-bright),var(--amber));
  color:var(--navy); font-family:var(--serif); font-size:20px; font-weight:700; line-height:1;
}
.brand-name{font-family:var(--serif); font-size:19px; letter-spacing:.01em; white-space:nowrap; color:var(--navy);}
.brand-name b{font-weight:400;}
.brand-logo{height:36px; width:auto; display:block;}
.footer .brand-logo{height:34px;}
@media (max-width:520px){ .brand-logo{height:30px;} .brand{padding:6px 11px;} }
.nav-links{display:flex; align-items:center; gap:30px;}
.nav-links a{color:rgba(255,255,255,.82); text-decoration:none; font-size:15px; font-weight:500; transition:color .2s; white-space:nowrap;}
.nav-links a:hover{color:#fff;}
.nav-phone{color:var(--amber-bright); font-weight:600; text-decoration:none; font-size:15px;}
.nav-right{display:flex; align-items:center; gap:12px;}
.nav-toggle{
  display:none; width:44px; height:44px; align-items:center; justify-content:center;
  background:transparent; border:1px solid rgba(255,255,255,.25); border-radius:9px; cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:20px; height:2px; background:#fff; border-radius:2px;
  transition:transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span{position:relative;}
.nav-toggle span::before{position:absolute; top:-6px;}
.nav-toggle span::after{position:absolute; top:6px;}
.nav-toggle span.x{background:transparent;}
.nav-toggle span.x::before{transform:translateY(6px) rotate(45deg);}
.nav-toggle span.x::after{transform:translateY(-6px) rotate(-45deg);}
@media (max-width:980px){
  .nav-links{
    display:none; position:absolute; top:74px; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:2px;
    background:rgba(13,30,48,.98); backdrop-filter:blur(10px);
    padding:14px var(--pad) 22px; border-top:1px solid rgba(224,162,78,.28);
    box-shadow:0 24px 40px -24px rgba(0,0,0,.7);
  }
  .nav-links.open{display:flex;}
  .nav-links a{font-size:17px; padding:11px 0; width:100%; border-bottom:1px solid rgba(255,255,255,.07);}
  .nav-links .nav-phone{border-bottom:0; padding-top:14px;}
  .nav-toggle{display:inline-flex;}
}
@media (max-width:560px){ .nav-cta{display:none;} }

/* subtle film grain on dark grounds */
.grain::after{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  opacity:.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > *{position:relative; z-index:1;}

/* section dividers */
.divider{line-height:0; position:relative; overflow:hidden;}
.divider svg{display:block; width:100%; height:clamp(44px,5.5vw,78px);}

/* image with graceful fallback */
.img-fallback{
  background:linear-gradient(150deg, var(--navy), var(--amber));
  border-radius:inherit; min-height:240px;
}

/* ---------- hero (navy, first dark anchor) ---------- */
.hero{position:relative; background:var(--navy); color:#fff; overflow:hidden;}
.hero::before{ /* subtle warm glow */
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(224,162,78,.16), transparent 60%),
    radial-gradient(700px 600px at 8% 120%, rgba(30,91,168,.22), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  position:relative; display:grid; grid-template-columns:1.08fr .92fr; gap:clamp(32px,5vw,68px);
  align-items:center; padding-block:clamp(56px,9vw,108px) clamp(64px,9vw,104px);
}
.hero h1{
  font-family:var(--serif); font-weight:400;
  font-size:clamp(40px,5.6vw,68px); letter-spacing:-.01em;
}
.hero h1 em{font-style:normal; color:var(--amber-bright);}
.hero .lede{color:rgba(245,240,230,.82); margin-top:24px; font-size:clamp(18px,2.1vw,21px); max-width:50ch;}
.hero-cta{display:flex; flex-wrap:wrap; gap:14px; margin-top:34px;}
.hero-trust{display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:36px; color:var(--mut); font-size:14px;}
.hero{position:relative;}
.hero-seal{
  position:absolute; z-index:3; width:clamp(104px,11vw,148px); height:auto;
  left:48%; bottom:-30px; transform:rotate(-9deg);
  filter:drop-shadow(0 16px 26px rgba(0,0,0,.5));
}
.wax-mono{font-family:var(--serif); font-size:54px; text-anchor:middle; fill:#5A3210;}
.wax-mono-shadow{fill:#F0C886; fill-opacity:.7;}
@media (max-width:860px){
  .hero-seal{left:auto; right:14px; bottom:-26px; width:104px;}
}
@media (max-width:560px){
  .hero-seal{width:88px; right:10px; bottom:-24px;}
}
.hero-trust span{display:inline-flex; align-items:center; gap:9px;}
.hero-trust .dot{width:6px; height:6px; border-radius:50%; background:var(--amber); flex:none;}
@media (max-width:860px){ .hero-grid{grid-template-columns:1fr;} }

/* striped image placeholder */
.ph{
  position:relative; border-radius:var(--radius); overflow:hidden;
  background:
    repeating-linear-gradient(135deg, rgba(159,176,192,.16) 0 12px, rgba(159,176,192,.06) 12px 24px),
    var(--navy-2);
  border:1px solid rgba(224,162,78,.25);
  display:grid; place-items:center; min-height:220px;
}
.ph .ph-label{
  font-family:var(--sans); font-size:12.5px; letter-spacing:.04em; color:var(--mut);
  background:rgba(13,28,46,.74); padding:7px 12px; border-radius:7px;
  font-variant-numeric:tabular-nums;
}
.ph.light{ background:
    repeating-linear-gradient(135deg, rgba(14,34,54,.07) 0 12px, rgba(14,34,54,.02) 12px 24px),
    #ECE4D3;
  border-color:rgba(200,132,60,.3);
}
.ph.light .ph-label{background:rgba(255,255,255,.78); color:var(--ink-soft);}
.hero-figure{aspect-ratio:4/5;}

/* ---------- generic section backgrounds ---------- */
.bg-ivory{background:var(--ivory);}
.bg-cloud{background:var(--cloud);}
.bg-navy{background:var(--navy); color:#fff;}
.bg-navy .lede{color:rgba(245,240,230,.82);}

/* soft curved top edge */
.edge-top{ }
.edge-soft::before{
  content:""; position:absolute; left:0; right:0; top:-1px; height:60px;
  background:inherit; clip-path:ellipse(75% 100% at 50% 0%); transform:translateY(-58px);
}

/* ---------- why / value cards ---------- */
.why-head{display:grid; grid-template-columns:1fr; gap:18px; max-width:64ch; margin-bottom:54px;}
.why-head h2{font-family:var(--serif); font-size:clamp(30px,4vw,46px); color:var(--navy);}
.cards3{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media (max-width:820px){ .cards3{grid-template-columns:1fr;} }
.vcard{
  background:var(--cloud); border:1px solid rgba(14,34,54,.08); border-radius:var(--radius);
  padding:30px 28px; box-shadow:var(--shadow-soft); height:100%;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.vcard:hover{transform:translateY(-4px); box-shadow:var(--shadow-card);}
@media (prefers-reduced-motion: reduce){ .vcard:hover{transform:none;} }
.vcard .vi{
  width:46px; height:46px; border-radius:11px; display:grid; place-items:center; margin-bottom:20px;
  background:rgba(200,132,60,.12); color:var(--amber); font-family:var(--serif); font-size:24px;
}
.vcard h3{font-family:var(--serif); font-size:22px; color:var(--navy); margin-bottom:10px;}
.vcard p{color:var(--ink-soft); font-size:16.5px;}

/* ---------- WE COME TO YOU (light, 2-col + image) ---------- */
.comeyou-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(32px,5vw,64px); align-items:center;}
@media (max-width:880px){ .comeyou-grid{grid-template-columns:1fr; gap:38px;} }
.comeyou-tagline{
  font-family:var(--serif); font-weight:400; font-size:clamp(27px,3.6vw,42px);
  color:var(--navy); max-width:20ch; letter-spacing:-.005em; margin-top:6px;
}
.comeyou-tagline em{font-style:normal; color:var(--amber);}
.steps-list{list-style:none; margin:30px 0 30px; padding:0; display:flex; flex-direction:column; gap:20px;}
.step-li{display:flex; gap:18px; align-items:flex-start;}
.step-num{
  font-family:var(--serif); font-size:34px; color:var(--amber); line-height:1; flex:none;
  width:52px; height:52px; border-radius:50%; display:grid; place-items:center;
  background:rgba(200,132,60,.1); border:1px solid rgba(200,132,60,.3);
}
.step-li h3{font-size:18.5px; font-weight:600; color:var(--navy); margin-bottom:5px; letter-spacing:.01em;}
.step-li p{color:var(--ink-soft); font-size:16.5px;}
.comeyou-media{position:relative;}
.media-img{
  width:100%; height:100%; min-height:360px; max-height:560px; object-fit:cover;
  border-radius:20px 20px 20px 70px; box-shadow:var(--shadow-card);
  border:1px solid rgba(14,34,54,.06);
}
.comeyou-media .img-fallback{width:100%; min-height:420px; border-radius:20px 20px 20px 70px;}
.media-badge{
  position:absolute; left:-14px; bottom:24px; background:var(--navy); color:#fff;
  border-radius:14px; padding:16px 20px; box-shadow:var(--shadow-card);
  display:flex; align-items:center; gap:12px; max-width:230px; border:1px solid rgba(224,162,78,.4);
}
.media-badge .serif{font-size:34px; color:var(--amber-bright); line-height:1;}
.media-badge span:last-child{font-size:13.5px; color:rgba(245,240,230,.85); line-height:1.35;}
@media (max-width:880px){ .media-img, .comeyou-media .img-fallback{min-height:300px;} }

/* ---------- quick check ---------- */
.check-card{
  max-width:760px; margin:40px auto 0; background:var(--cloud);
  border:1px solid rgba(14,34,54,.09); border-radius:18px; box-shadow:var(--shadow-card);
  overflow:hidden;
}
.check-q{
  display:grid; grid-template-columns:1fr auto; gap:18px 26px; align-items:center;
  padding:24px 28px; border-bottom:1px solid rgba(14,34,54,.07);
}
.check-q:last-of-type{border-bottom:0;}
.check-q .qtext{font-size:17px; color:var(--ink); font-weight:500;}
.toggle{display:inline-flex; background:var(--ivory); border-radius:999px; padding:4px; gap:4px; border:1px solid rgba(14,34,54,.08);}
.toggle button{
  border:0; background:transparent; color:var(--ink-soft); font-weight:600; font-size:14px;
  padding:8px 18px; border-radius:999px; cursor:pointer; transition:background .2s, color .2s; min-width:60px;
}
.toggle button[aria-pressed="true"].yes{background:var(--blue); color:#fff;}
.toggle button[aria-pressed="true"].no{background:var(--amber); color:#fff;}
.check-foot{padding:24px 28px; background:var(--ivory);}
.result{
  display:flex; flex-wrap:wrap; align-items:center; gap:18px 24px; justify-content:space-between;
  padding:22px 24px; border-radius:12px; border:1px solid; margin-bottom:0;
  animation:rise .5s var(--ease) both;
}
.result.good{background:rgba(30,91,168,.07); border-color:rgba(30,91,168,.28);}
.result.review{background:rgba(200,132,60,.09); border-color:rgba(200,132,60,.35);}
.result p{font-size:16.5px; color:var(--ink); max-width:48ch;}
.result strong{font-family:var(--serif); font-weight:400; font-size:19px; display:block; margin-bottom:4px; color:var(--navy);}
.check-progress{font-size:13.5px; color:var(--ink-soft); letter-spacing:.02em;}
@keyframes rise{from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:none;}}
@media (prefers-reduced-motion: reduce){ .result{animation:none;} }

/* ---------- reviews ---------- */
.reviews-grid{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:stretch;
  gap:22px; margin-top:46px;
}
.quote{
  flex:1 1 300px; max-width:370px;
  background:var(--cloud); border:1px solid rgba(14,34,54,.08); border-radius:var(--radius);
  padding:30px 28px 26px; box-shadow:var(--shadow-soft); position:relative;
  display:flex; flex-direction:column;
}
@media (max-width:640px){ .quote{flex:1 1 100%; max-width:none;} }
.quote .mark{font-family:var(--serif); font-size:64px; line-height:.7; color:var(--amber); height:30px;}
.quote p{font-size:18px; color:var(--ink); margin:14px 0 20px; font-weight:500;}
.quote .who{margin-top:auto; display:flex; align-items:center; gap:10px; color:var(--ink-soft); font-size:14.5px;}
.quote .who b{color:var(--navy); font-weight:600;}
.quote .stars{color:var(--amber); letter-spacing:2px; font-size:13px; margin-bottom:0;}

/* ---------- contact (light) ---------- */
.contact h2{margin-bottom:14px;}
.contact{position:relative; overflow:hidden;}
.contact > .wrap{position:relative; z-index:1;}
.contact-grid{display:grid; grid-template-columns:1fr .92fr; gap:clamp(34px,5vw,60px); align-items:start;}
@media (max-width:860px){ .contact-grid{grid-template-columns:1fr;} }
.form{display:grid; gap:16px; margin-top:30px;}
.field{display:grid; gap:7px;}
.field label{font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft);}
.field input, .field textarea{
  font-family:inherit; font-size:16px; color:var(--ink);
  background:var(--cloud); border:1px solid rgba(14,34,54,.18); border-radius:10px;
  padding:13px 15px; transition:border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder{color:var(--mut);}
.field input:focus, .field textarea:focus{border-color:var(--amber); box-shadow:0 0 0 3px rgba(200,132,60,.16); outline:none;}
.field.invalid input, .field.invalid textarea{border-color:#C5503F;}
.field .err{font-size:13px; color:#C5503F; text-transform:none; letter-spacing:0; font-weight:500;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media (max-width:520px){ .form-row{grid-template-columns:1fr;} }
.contact-info{
  background:var(--ivory); border:1px solid rgba(14,34,54,.08); border-radius:18px;
  padding:30px 30px; align-self:start; box-shadow:var(--shadow-soft);
}
.contact-info h3{font-family:var(--serif); font-size:22px; margin-bottom:14px; color:var(--navy);}
.info-row{display:flex; gap:14px; padding:12px 0; border-bottom:1px solid rgba(14,34,54,.09);}
.info-row .il{font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--amber); width:60px; flex:none; padding-top:3px; font-weight:600;}
.info-row .iv{font-size:16px; color:var(--ink); line-height:1.5;}
.info-row .iv a{color:var(--navy); text-decoration:none; border-bottom:1px solid rgba(200,132,60,.6); font-weight:500;}
.contact-map{
  border:1px solid rgba(200,132,60,.4); width:100%; height:230px; border-radius:14px;
  margin-top:20px; box-shadow:var(--shadow-soft); filter:saturate(.92);
}
.areas{margin-top:18px; font-size:14.5px; color:var(--ink-soft); line-height:1.7;}
.essex-accent{
  width:100%; height:120px; object-fit:cover; border-radius:12px; margin-top:18px;
  border:1px solid rgba(14,34,54,.06);
}
.contact-info .img-fallback{height:120px; min-height:0; margin-top:18px;}
.sent{
  background:rgba(30,91,168,.07); border:1px solid rgba(30,91,168,.3); border-radius:12px;
  padding:22px 24px; animation:rise .5s var(--ease) both;
}
.sent strong{font-family:var(--serif); font-weight:400; font-size:20px; display:block; margin-bottom:6px; color:var(--navy);}
.sent p{color:var(--ink-soft); font-size:16px;}

/* ---------- footer ---------- */
.footer{position:relative; overflow:hidden; background:var(--navy); color:rgba(245,240,230,.7); padding:64px 0 40px; border-top:2px solid var(--amber);}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:42px;}
@media (max-width:760px){ .footer-grid{grid-template-columns:1fr;} gap:30px; }
.footer .brand{margin-bottom:18px;}
.footer h4{font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--amber-bright); margin:0 0 16px;}
.footer p, .footer a{font-size:15px; line-height:1.8; text-decoration:none;}
.footer a:hover{color:#fff;}
.footer-bio{max-width:42ch; font-size:15px;}
.footer-areas{font-size:14.5px;}
.footer-bottom{
  border-top:1px solid rgba(224,162,78,.3); padding-top:26px;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; align-items:center;
  font-size:13.5px; color:var(--mut);
}
.footer-bottom .cred{display:flex; gap:10px; align-items:center;}
.footer-bottom a{font-size:13.5px;}

/* reveal-on-scroll — base is the visible end-state; only hide when motion is welcome */
.reveal{opacity:1; transform:none;}
@media (prefers-reduced-motion: no-preference){
  .reveal{opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
}
.reveal.in{opacity:1; transform:none;}

/* staggered page-load fade-ups for hero */
.load-up{opacity:1; transform:none;}
@media (prefers-reduced-motion: no-preference){
  .load-up{opacity:0; transform:translateY(16px); animation:loadUp .8s var(--ease) forwards;}
}
@keyframes loadUp{to{opacity:1; transform:none;}}

/* ============================================================ HOURGLASS */
.hourglass-wrap{
  position:relative; display:grid; place-items:center;
  width:100%; min-height:340px;
}
.hg-glow{
  position:absolute; width:78%; aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle, rgba(224,162,78,.34), rgba(224,162,78,.06) 55%, transparent 72%);
  filter:blur(8px); pointer-events:none;
}
.hourglass{
  position:relative; width:clamp(220px,30vw,330px); height:auto; overflow:visible;
  filter:drop-shadow(0 24px 50px rgba(0,0,0,.45));
}
.hg-sand{animation:sandReset 18s linear infinite;}
.hg-top{animation:drainTop 18s linear infinite;}
.hg-bot{animation:fillBottom 18s linear infinite;}
.hg-stream{animation:streamFlow 18s linear infinite; transform-origin:center;}

@keyframes drainTop{
  0%{transform:translateY(0);}
  82%{transform:translateY(122px);}
  100%{transform:translateY(122px);}
}
@keyframes fillBottom{
  0%{transform:translateY(122px);}
  82%{transform:translateY(0);}
  100%{transform:translateY(0);}
}
@keyframes sandReset{
  0%,2.5%{opacity:0;}
  6%,90%{opacity:1;}
  96%,100%{opacity:0;}
}
@keyframes streamFlow{
  0%,6%{opacity:0; transform:scaleY(.4);}
  12%,78%{opacity:.92; transform:scaleY(1);}
  85%,100%{opacity:0; transform:scaleY(.4);}
}
@media (prefers-reduced-motion: reduce){
  .hg-sand{animation:none; opacity:1;}
  .hg-top{animation:none; transform:translateY(61px);}
  .hg-bot{animation:none; transform:translateY(61px);}
  .hg-stream{animation:none; opacity:0;}
}
@media (max-width:860px){
  .hourglass-wrap{min-height:auto; margin-bottom:8px;}
  .hourglass{width:clamp(170px,42vw,230px);}
}

/* ============================================================ TRUST STRIP */
.trust-strip{background:var(--ivory); border-bottom:1px solid rgba(200,132,60,.22);}
.trust-inner{
  display:grid; grid-template-columns:repeat(5,1fr); gap:14px;
  padding:20px 0;
}
@media (max-width:980px){ .trust-inner{grid-template-columns:repeat(3,1fr); gap:20px 14px;} }
@media (max-width:620px){ .trust-inner{grid-template-columns:repeat(2,1fr);} }
@media (max-width:400px){ .trust-inner{grid-template-columns:1fr;} }
.trust-item{display:flex; align-items:center; gap:14px; padding:6px 10px;}
.trust-item:not(:last-child){border-right:1px solid rgba(14,34,54,.1);}
@media (max-width:980px){ .trust-item{border-right:0 !important;} }
.trust-ic{
  width:38px; height:38px; flex:none; border-radius:50%; display:grid; place-items:center;
  border:1.5px solid rgba(200,132,60,.55); color:var(--amber);
}
.trust-ic svg{width:20px; height:20px;}
.trust-item .tl{font-size:14.5px; font-weight:500; color:var(--navy); line-height:1.35;}
.trust-badge{width:48px; height:48px; flex:none; object-fit:contain;}
.badge-chip{
  flex:none; font-size:11px; font-weight:600; letter-spacing:.04em; color:var(--amber);
  border:1.5px solid var(--amber); border-radius:999px; padding:8px 12px; line-height:1.2; max-width:120px; text-align:center;
}

/* ============================================================ SERVICES */
.svc-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
@media (max-width:900px){ .svc-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .svc-grid{grid-template-columns:1fr;} }
.vi svg{width:24px; height:24px;}
.svc-note{
  margin-top:30px; text-align:center; font-size:16px; color:var(--ink-soft);
}
.svc-note b{color:var(--navy); font-weight:600; font-family:var(--serif); font-style:normal;}

/* what-we-do intro with wax seal */
.svc-head-row{display:flex; align-items:center; justify-content:space-between; gap:clamp(28px,5vw,60px); margin-bottom:48px;}
.svc-seal{width:clamp(120px,13vw,164px); height:auto; flex:none; filter:drop-shadow(0 14px 24px rgba(90,50,16,.32)); transform:rotate(-7deg);}
@media (max-width:760px){
  .svc-head-row{flex-direction:column; align-items:flex-start;}
  .svc-seal{align-self:center; width:128px; transform:none;}
}

/* services intro + supporting image */
.svc-head{display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(30px,5vw,60px); align-items:center; margin-bottom:50px;}
@media (max-width:860px){ .svc-head{grid-template-columns:1fr; gap:30px;} }
.svc-head-text h2{font-family:var(--serif); font-size:clamp(28px,3.6vw,42px); color:var(--navy); margin-bottom:16px;}
.svc-head-text .lede{margin-top:0;}
.svc-img{
  width:100%; height:100%; min-height:240px; max-height:340px; object-fit:cover;
  border-radius:18px 18px 60px 18px; box-shadow:var(--shadow-card); border:1px solid rgba(14,34,54,.06);
}
.svc-head-media .img-fallback{min-height:280px; border-radius:18px 18px 60px 18px;}

/* subtle texture over ivory */
.texture{position:relative;}
.texture::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:radial-gradient(rgba(14,34,54,.05) 1px, transparent 1px);
  background-size:18px 18px;
}
.texture > *{position:relative;}

/* executor note card */
.note-card{background:var(--navy); border-color:transparent; color:#fff;}
.note-card .vi{background:rgba(224,162,78,.18); color:var(--amber-bright);}
.note-card h3{color:#fff;}
.note-card p{color:rgba(245,240,230,.82);}
.note-card:hover{box-shadow:var(--shadow-card);}

/* ---------- WHICH WILL (Q&A accordion) ---------- */
#which-will{padding-top:clamp(44px,5vw,68px);}
.qa-grid{display:grid; grid-template-columns:1fr 1fr; gap:clamp(20px,3vw,34px); align-items:start;}
@media (max-width:820px){ .qa-grid{grid-template-columns:1fr; gap:0;} }
.qa-col{display:flex; flex-direction:column;}
.qa-row{border-bottom:1px solid rgba(14,34,54,.12);}
.qa-row:first-child{border-top:1px solid rgba(14,34,54,.12);}
@media (max-width:820px){ .qa-col:not(:first-child) .qa-row:first-child{border-top:0;} }
.qa-q{margin:0;}
.qa-q button{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:18px;
  background:transparent; border:0; cursor:pointer; text-align:left;
  padding:22px 4px; font-family:var(--serif); font-size:clamp(18px,2vw,21px); color:var(--navy);
  transition:color .2s;
}
.qa-q button:hover{color:var(--amber);}
.qa-plus{position:relative; width:20px; height:20px; flex:none;}
.qa-plus::before, .qa-plus::after{
  content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  background:var(--amber); border-radius:2px; transition:transform .3s var(--ease), opacity .3s var(--ease);
}
.qa-plus::before{width:16px; height:2px;}
.qa-plus::after{width:2px; height:16px;}
.qa-row.open .qa-plus::after{transform:translate(-50%,-50%) rotate(90deg); opacity:0;}
.qa-panel{padding:0 4px 24px; max-width:54ch;}
.qa-panel p{color:var(--ink-soft); font-size:16.5px;}
@media (prefers-reduced-motion: no-preference){
  .qa-panel p{animation:rise .4s var(--ease) both;}
}
.qa-cta{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:18px 26px;
  margin-top:46px; padding:30px 34px; border-radius:16px;
  background:rgba(200,132,60,.08); border:1px solid rgba(200,132,60,.28); text-align:center;
}
.qa-cta p{font-family:var(--serif); font-size:clamp(20px,2.4vw,26px); color:var(--navy);}

/* ============================================================ BRAND MOTIFS */
/* monogram seal */
.seal-text{font-family:var(--sans); font-size:11px; font-weight:600; letter-spacing:.18em; text-anchor:middle;}
.seal-mono{font-family:var(--serif); font-size:46px; text-anchor:middle;}
.seal-sub{font-family:var(--sans); font-size:9px; font-weight:600; letter-spacing:.34em; text-anchor:middle;}

/* footer watermark + crest */
.footer-watermark{
  position:absolute; right:-60px; bottom:-70px; width:340px; height:340px;
  color:var(--amber); opacity:.07; pointer-events:none; z-index:0;
}
.footer .wrap{position:relative; z-index:1;}
.cred-seal{width:38px; height:38px; flex:none; vertical-align:middle; margin-right:2px;}
.footer-bottom .cred{display:flex; align-items:center; gap:12px;}

/* fees as a sealed certificate */
.fees-cert{position:relative; overflow:hidden;}
.fees-cert::before{
  content:""; position:absolute; left:50%; top:-40px; transform:translateX(-50%);
  width:680px; height:680px; max-width:120vw; pointer-events:none; opacity:.6;
  background:repeating-radial-gradient(circle at 50% 50%, transparent 0 13px, rgba(200,132,60,.06) 13px 14px);
  -webkit-mask:radial-gradient(circle at 50% 50%, #000, transparent 58%);
  mask:radial-gradient(circle at 50% 50%, #000, transparent 58%);
}
.fees-cert > .wrap{position:relative; z-index:1;}
.guarantee{
  display:flex; align-items:center; gap:clamp(20px,3vw,40px); margin-top:42px;
  background:var(--cloud); border:1px solid rgba(200,132,60,.32); border-radius:16px;
  padding:28px clamp(24px,3.5vw,40px); box-shadow:var(--shadow-soft);
  position:relative;
}
.guarantee::after{
  content:""; position:absolute; inset:5px; border:1px solid rgba(200,132,60,.22); border-radius:11px; pointer-events:none;
}
.guarantee-seal{width:96px; height:96px; flex:none;}
@media (max-width:560px){ .guarantee{flex-direction:column; text-align:center;} .guarantee-seal{width:84px; height:84px;} }
.guarantee-line{font-family:var(--serif); font-size:clamp(20px,2.4vw,26px); color:var(--navy); margin-bottom:6px;}
.guarantee-sub{font-size:16px; color:var(--ink-soft); max-width:52ch;}
.signature{
  display:inline-block; margin-top:8px; font-family:"Pinyon Script", cursive;
  font-size:34px; line-height:1; color:var(--amber); transform:rotate(-3deg); transform-origin:left center;
}
@media (max-width:560px){ .signature{transform:none;} }

/* estuary contour motif */
.estuary{
  position:absolute; left:0; right:0; bottom:0; width:100%; height:62%;
  color:var(--amber); opacity:.1; pointer-events:none; z-index:0;
}
.contact-estuary{bottom:auto; top:0; height:70%; opacity:.09;}
