/* ============================================================
   SFS Groundworks, Estate (demo1) INNER-PAGE system
   Extends base.css + demo1.css. Scoped to .d1. Reuses Estate tokens
   (--paper, --paper-2, --ink, --mut, --navy, --gold, --line, --ease)
   and existing components (.sec, .sec--sand, .sec--navy, .feat, .btn,
   .eyebrow, .approach/.appgrid/.app). Adds the page hero, breadcrumb,
   lead intro, capabilities list, stat band, FAQ accordion, related
   cards and CTA band. No filter:blur / blend on moving layers.
   ============================================================ */

/* ---------- page hero banner ---------- */
.d1 .phero{position:relative;min-height:clamp(460px,66vh,660px);display:flex;align-items:flex-end;
  overflow:hidden;background:var(--navy)}
.d1 .phero__media{position:absolute;inset:0}
.d1 .phero__media img,.d1 .phero__media video{width:100%;height:100%;object-fit:cover}
/* directional scrim: darker at the bottom-left where the text sits, so it never washes out */
.d1 .phero::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(7,16,23,.5) 0%,rgba(7,16,23,.28) 32%,rgba(7,16,23,.92) 100%),
    linear-gradient(96deg,rgba(7,16,23,.66) 0%,rgba(7,16,23,.22) 44%,rgba(7,16,23,0) 76%)}
/* content indented from the left edge so it sits in from the banner with a clear gap */
.d1 .phero__in{position:relative;z-index:2;width:100%;
  padding:clamp(120px,16vh,180px) 0 clamp(46px,5vw,76px) clamp(8px,4.5vw,80px)}
.d1 .phero h1{font-family:"Fraunces",Georgia,serif;font-weight:500;color:#fff;
  font-size:clamp(2.4rem,5.6vw,4.6rem);line-height:1.03;letter-spacing:-.01em;max-width:17ch;margin:0;
  text-shadow:0 2px 30px rgba(0,0,0,.5),0 1px 3px rgba(0,0,0,.35)}
.d1 .phero h1 em{font-style:italic;color:var(--gold)}
.d1 .phero__sub{font-family:"Inter",sans-serif;color:rgba(255,255,255,.94);
  font-size:clamp(1.05rem,1.5vw,1.22rem);max-width:54ch;margin-top:22px;line-height:1.62;
  text-shadow:0 1px 16px rgba(0,0,0,.6)}
.d1 .phero__cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}

/* breadcrumb — hidden visually; SEO breadcrumb is served by the BreadcrumbList JSON-LD,
   which Google uses for breadcrumb rich results. HTML kept in source for crawlers. */
.d1 .crumb{display:none}
.d1 .crumb--show{display:flex;flex-wrap:wrap;gap:9px;align-items:center;font-family:"Inter",sans-serif;
  font-size:12.5px;letter-spacing:.04em;color:rgba(255,255,255,.8);margin-bottom:24px;
  text-shadow:0 1px 10px rgba(0,0,0,.55)}
.d1 .crumb a{color:rgba(255,255,255,.72);transition:color .25s}
.d1 .crumb a:hover{color:var(--gold)}
.d1 .crumb i{font-style:normal;color:var(--gold);opacity:.85}
.d1 .crumb b{font-weight:400;color:#fff}

/* ---------- intro / lead ---------- */
/* intro — centred, stacked: header on top, text directly underneath (no image, so no split).
   Header (eyebrow + lead) stays at its tighter width; the body spreads wider so it flows
   across the page instead of feeling condensed in the middle. */
.d1 .pintro__grid{max-width:1060px;margin-inline:auto;text-align:center}
.d1 .pintro__grid .eyebrow{justify-content:center}
.d1 .pintro__grid .eyebrow::after{content:"";width:30px;height:1px;background:var(--gold)}
.d1 .pintro__lead{font-family:"Fraunces",Georgia,serif;font-weight:400;
  font-size:clamp(1.55rem,2.7vw,2.35rem);line-height:1.2;color:var(--ink);margin:16px auto 0;max-width:740px}
.d1 .pintro__lead em{font-style:italic;color:var(--gold)}
.d1 .pintro__body{margin-top:clamp(22px,2.6vw,32px)}
.d1 .pintro__body p{font-family:"Inter",sans-serif;color:var(--mut);font-size:1.06rem;
  line-height:1.75;margin-bottom:16px}
.d1 .pintro__body p:last-child{margin-bottom:0}
.d1 .pintro__body strong{color:var(--ink);font-weight:600}

/* ---------- capabilities list ---------- */
.d1 .caps{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(28px,4vw,60px);margin-top:6px}
.d1 .caps li{display:flex;gap:14px;align-items:flex-start;padding:15px 2px;border-bottom:1px solid var(--line);
  font-family:"Inter",sans-serif;font-size:1.02rem;color:var(--ink);line-height:1.45}
.d1 .caps li::before{content:"";flex:none;width:9px;height:9px;margin-top:7px;border-radius:50%;
  background:var(--gold);box-shadow:0 0 0 4px rgba(176,133,63,.16)}
.d1 .caps li b{font-weight:600}
.d1 .caps li span{display:block;color:var(--mut);font-size:.92rem;margin-top:3px}
@media(max-width:680px){.d1 .caps{grid-template-columns:1fr}}

/* ---------- navy stat band ---------- */
.d1 .pstats{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(24px,3vw,40px)}
.d1 .pstat b{font-family:"Fraunces",Georgia,serif;font-size:clamp(2.4rem,4.2vw,3.5rem);font-weight:500;
  color:#fff;display:block;line-height:1}
.d1 .pstat b::after{content:attr(data-suffix);color:var(--gold)}
.d1 .pstat span{font-family:"Inter",sans-serif;font-size:12.5px;color:#A9B4BC;text-transform:uppercase;
  letter-spacing:.07em;margin-top:10px;display:block}
@media(max-width:700px){.d1 .pstats{grid-template-columns:repeat(2,1fr);gap:30px}}

/* ---------- FAQ accordion (native details, no JS needed) ---------- */
.d1 .faq{border-top:1px solid var(--line);max-width:920px}
.d1 .faq details{border-bottom:1px solid var(--line)}
.d1 .faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;
  gap:24px;padding:25px 2px;font-family:"Fraunces",Georgia,serif;font-weight:500;
  font-size:clamp(1.12rem,1.8vw,1.42rem);color:var(--ink);transition:color .25s}
.d1 .faq summary:hover{color:var(--gold)}
.d1 .faq summary::-webkit-details-marker{display:none}
.d1 .faq summary::after{content:"+";font-family:"Inter",sans-serif;font-weight:400;font-size:1.7rem;
  line-height:1;color:var(--gold);transition:transform .3s var(--ease);flex:none}
.d1 .faq details[open] summary::after{transform:rotate(45deg)}
.d1 .faq__a{padding:2px 2px 28px;font-family:"Inter",sans-serif;color:var(--mut);font-size:1.04rem;
  line-height:1.72;max-width:78ch}
.d1 .faq__a a{color:var(--gold);border-bottom:1px solid rgba(176,133,63,.4)}

/* ---------- related services ---------- */
.d1 .related{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.d1 .rcard{display:flex;flex-direction:column;background:var(--paper);border:1px solid var(--line);
  border-radius:5px;overflow:hidden;text-decoration:none;transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.d1 .rcard:hover{transform:translateY(-6px);box-shadow:0 28px 56px -28px rgba(14,44,61,.45)}
.d1 .rcard__img{aspect-ratio:16/10;overflow:hidden;background:var(--paper-2)}
.d1 .rcard__img img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.d1 .rcard:hover .rcard__img img{transform:scale(1.06)}
.d1 .rcard__b{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1}
.d1 .rcard h3{font-family:"Fraunces",Georgia,serif;font-weight:500;font-size:1.32rem;color:var(--ink);margin:0 0 8px}
.d1 .rcard p{font-family:"Inter",sans-serif;font-size:.95rem;color:var(--mut);line-height:1.6;margin:0 0 16px;flex:1}
.d1 .rcard__more{font-family:"Inter",sans-serif;font-weight:600;font-size:14px;color:var(--navy);
  display:inline-flex;gap:8px;align-items:center}
.d1 .rcard__more::after{content:"\2192";color:var(--gold);transition:transform .3s var(--ease)}
.d1 .rcard:hover .rcard__more::after{transform:translateX(5px)}
@media(max-width:860px){.d1 .related{grid-template-columns:1fr}}

/* ---------- closing CTA band ---------- */
.d1 .ctaband{text-align:center}
.d1 .ctaband .eyebrow{justify-content:center}
.d1 .ctaband h2{font-family:"Fraunces",Georgia,serif;color:#fff;font-weight:400;
  font-size:clamp(2rem,4.2vw,3.3rem);line-height:1.08;max-width:22ch;margin:16px auto 0}
.d1 .ctaband h2 em{font-style:italic;color:var(--gold)}
.d1 .ctaband p{font-family:"Inter",sans-serif;color:#A9B4BC;margin:18px auto 0;max-width:54ch;line-height:1.62}
.d1 .ctaband__cta{display:flex;gap:14px;justify-content:center;margin-top:32px;flex-wrap:wrap}
.d1 .ctaband__phone{margin-top:22px;font-family:"Inter",sans-serif;color:rgba(255,255,255,.72);font-size:14px}
.d1 .ctaband__phone a{color:#fff;font-weight:600}
.d1 .ctaband__phone a:hover{color:var(--gold)}

/* ---------- section intro helper ---------- */
.d1 .secintro{max-width:660px;margin-bottom:clamp(40px,5vw,72px)}
.d1 .secintro h2{font-family:"Fraunces",Georgia,serif;font-size:clamp(2rem,4.2vw,3.2rem);font-weight:400;
  margin-top:16px;line-height:1.08}
.d1 .secintro h2 em{font-style:italic;color:var(--gold)}
.d1 .secintro p{font-family:"Inter",sans-serif;color:var(--mut);font-size:1.06rem;line-height:1.7;margin-top:16px}
.d1 .secintro--center{margin-left:auto;margin-right:auto;text-align:center}
.d1 .secintro--center .eyebrow{justify-content:center}

/* feat list items inside service feature rows */
.d1 .feat__list{list-style:none;margin:18px 0 24px;display:grid;gap:9px}
.d1 .feat__list li{font-family:"Inter",sans-serif;font-size:1rem;color:var(--ink);display:flex;gap:11px;align-items:flex-start}
.d1 .feat__list li::before{content:"\2713";color:var(--gold);font-weight:700;flex:none}

@media(max-width:860px){.d1 .pintro__body{margin-top:22px}}

/* ---------- portfolio gallery (Our Work) ---------- */
.d1 .pgal{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.d1 .pgal figure{margin:0;overflow:hidden;border-radius:4px;aspect-ratio:4/3;background:var(--paper-2);
  box-shadow:0 24px 50px -34px rgba(28,27,24,.45)}
.d1 .pgal img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.d1 .pgal figure:hover img{transform:scale(1.06)}
@media(max-width:760px){.d1 .pgal{grid-template-columns:repeat(2,1fr);gap:12px}}

/* ---------- testimonials grid ---------- */
.d1 .tgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.d1 .tcard{background:var(--paper);border:1px solid var(--line);border-radius:5px;padding:clamp(26px,3vw,40px);
  display:flex;flex-direction:column}
.d1 .tcard__stars{color:var(--gold);letter-spacing:3px;font-size:15px;margin-bottom:16px}
.d1 .tcard blockquote{font-family:"Fraunces",Georgia,serif;font-weight:400;font-style:italic;
  font-size:clamp(1.15rem,1.7vw,1.4rem);line-height:1.45;color:var(--ink);margin:0 0 18px;flex:1}
.d1 .tcard figcaption{font-family:"Inter",sans-serif;font-weight:600;color:var(--navy);letter-spacing:.02em}
.d1 .tcard figcaption span{display:block;font-weight:400;font-size:13px;color:var(--mut);margin-top:3px}
@media(max-width:760px){.d1 .tgrid{grid-template-columns:1fr}}

/* ---------- areas hub grid ---------- */
.d1 .areagrid{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:0 clamp(20px,3vw,44px)}
.d1 .areagrid li a{display:flex;align-items:center;gap:12px;padding:16px 2px;border-bottom:1px solid var(--line);
  font-family:"Fraunces",Georgia,serif;font-weight:500;font-size:clamp(1.02rem,1.4vw,1.22rem);color:var(--ink);
  text-decoration:none;transition:color .3s var(--ease),padding-left .3s var(--ease)}
.d1 .areagrid li a::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--gold);
  transform:scale(.55);transition:transform .3s var(--ease)}
.d1 .areagrid li a:hover{color:var(--gold);padding-left:8px}
.d1 .areagrid li a:hover::before{transform:scale(1)}
@media(max-width:880px){.d1 .areagrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.d1 .areagrid{grid-template-columns:1fr}}

/* ---------- interactive polish: tilt + hero scroll cue ---------- */
.d1 .rcard,.d1 [data-tilt]{will-change:transform}
.d1 .phero__cue{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:10px;font-family:"Inter",sans-serif;
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:rgba(255,255,255,.74);
  text-shadow:0 1px 8px rgba(0,0,0,.55);pointer-events:none}
.d1 .phero__cue i{width:1px;height:40px;background:linear-gradient(rgba(255,255,255,0),rgba(255,255,255,.7));
  position:relative;overflow:hidden}
.d1 .phero__cue i::after{content:"";position:absolute;left:0;right:0;top:0;height:100%;background:var(--gold);
  animation:cueline 2.4s var(--ease) infinite}
@keyframes cueline{0%{transform:translateY(-100%)}55%,100%{transform:translateY(100%)}}

/* extra breathing room between the banner and the first content section */
.d1 .phero + section{padding-top:clamp(124px,14.5vw,205px)}
