/* Original homepage artwork, scoped additions only. Existing philosophy/header
   animations and the original 3/2/1 review carousel remain authoritative. */
body[data-page="home"] .home-heritage-stats{padding:64px var(--gutter-a,10px) 20px}
body[data-page="home"] .home-heritage-stats>.sec__inner{max-width:var(--home-rail,1360px)}
.heritage-eyebrow{font:600 13px/1.6 var(--f-text);letter-spacing:.12em;text-transform:uppercase;color:#416481;text-align:center;margin:0 0 22px}
.heritage-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.heritage-stat{min-width:0;display:grid;justify-items:center;align-content:start;padding:22px 24px 30px;border:1px solid #b4c7d9;border-radius:28px;background:radial-gradient(ellipse at 10% 0,#c9e9f09e,transparent 70%),linear-gradient(145deg,#fcfeff,#e1ebf7);box-shadow:inset 0 1px #fff,0 18px 40px -32px #16345a75;text-align:center}
.heritage-motion{pointer-events:none;min-width:0;position:relative}
.heritage-motion>svg{display:block!important;max-width:100%;height:100%!important;width:100%!important}
/* The source meanings remain; each new geometric composition has a deliberate
   coordinated entrance and a restrained visible-only living illustration.
   The figure never changes the card's reserved layout. */
.heritage-stat-art{width:174px;height:140px;margin:0 0 10px;pointer-events:none}
.heritage-stat-art>svg{display:block;width:100%;height:100%;overflow:visible}
/* The layered copy (enamel3d.js) wraps the drawing in span.e3d-box. The wrapper and the drawing inside it keep
   the drawing's box exactly, so the copy lands on the drawing: same size, same place, at every width. */
.heritage-stat-art>.e3d-box{display:block;width:100%;height:100%}
.heritage-stat-art>.e3d-box>svg{display:block;width:100%;height:100%;overflow:visible}
/* The copy's ground shadow lies where the drawing's own shadow is (centre at 89% of the box, 64% wide). */
.heritage-stat-art .e3d__ground{left:17%;right:17%;bottom:5%;height:11%}
/* The drawing's own flat shadow (its first ellipse) is not one of the copied parts. The copy carries it here and
   hands over to its soft ground shadow as the depth grows (--lift 0 to 1), so nothing changes in the one frame in
   which the copy replaces the drawing. Boxes read from the three drawings (200 x 160 units). */
.heritage-stat-art .e3d::before{content:"";position:absolute;left:17.5%;right:17.5%;top:85%;height:8.75%;border-radius:50%;background:rgba(22,57,90,.1);opacity:calc(1 - var(--lift,1));pointer-events:none}
.heritage-stat:nth-child(1) .heritage-stat-art .e3d::before{left:20%;right:17%}
.heritage-stat:nth-child(3) .heritage-stat-art .e3d::before{left:21%;right:17%}
.heritage-stat-number{inline-size:100%;text-align:center}
.heritage-counter{display:block;inline-size:100%;font-variant-numeric:tabular-nums}
/* Original HELP's observed color filter is preserved. It sits on the drawing itself, so the ground shadow
   under the pile (below) keeps the band's own navy. */
.heritage-help>svg{filter:saturate(1) hue-rotate(96deg);overflow:visible}
.heritage-stat-number{font:600 clamp(40px,4.3vw,64px)/1.12 var(--f-primary);color:#102e54;font-variant-numeric:tabular-nums;white-space:nowrap;display:block;min-height:1.2em}
.heritage-stat-label{font:500 16px/1.6 var(--f-text);color:#354f6e;margin:12px 0 0;max-width:27ch}
.heritage-stat-disclosure{font:400 12px/1.7 var(--f-text);text-align:center;color:#536980;max-width:70ch;margin:20px auto 0}
/* The attorney action belongs to the copy; the approved brand animation owns the adjacent stage. */
body[data-page="home"] .phil__copy>.heritage-phil-actions{display:flex;align-items:center;margin-top:28px}
body[data-page="home"] .heritage-phil-actions>.btn{margin:0;max-width:100%;width:fit-content;min-height:56px;min-inline-size:min(240px,100%);font-size:18px;padding-inline:30px}
/* A real original asset, fixed at the viewport centre behind these two sections. */
body[data-page="home"]::before{content:none}
body[data-page="home"] #philosophy .phil::before,
body[data-page="home"] #home-heritage-support>.sec__inner::before{content:"";position:absolute;inset:0;border-radius:inherit;background:url(brand/live/2025_08_Favicon.png) center center/500px auto no-repeat fixed;opacity:.06;pointer-events:none;z-index:1}
body[data-page="home"] #philosophy .phil>*{position:relative;z-index:2}
body[data-page="home"] .home-heritage-support{padding:22px var(--gutter-a,10px) 10px}
body[data-page="home"] .heritage-support-grid{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center;max-width:1420px;padding:44px;border:1px solid #688bb166;border-radius:33px;background:radial-gradient(ellipse at 0 0,#1a568c,#132d5b 58%,#101e43);box-shadow:inset 0 1px #e3f2ff38,0 20px 45px -37px #091b55a3}
body[data-page="home"] .heritage-support-grid.has-phone{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}
.heritage-budget{position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;pointer-events:none}
.heritage-budget-video,.heritage-budget-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.3}
.heritage-budget-poster{transition:opacity .2s linear}
.heritage-budget-video[data-playing="true"]+.heritage-budget-poster{opacity:0}
.heritage-budget-veil{position:absolute;inset:0;background:linear-gradient(105deg,#0d2d5675,#11295b9e 60%,#0b1c45c4)}
.heritage-phone,.heritage-assistance{position:relative;z-index:2;min-width:0}
.heritage-phone{margin:0;overflow:hidden;border-radius:24px;align-self:stretch;display:flex;align-items:center}
.heritage-phone[hidden]{display:none}
.heritage-phone-image{display:block;width:100%;height:auto;object-fit:contain;border-radius:24px}
.heritage-assistance{display:grid;justify-items:center;align-content:center;gap:20px;width:100%;max-width:440px;justify-self:center;text-align:center}
.heritage-assistance>.h2{font-size:clamp(32px,3.1vw,44px);line-height:1.15;color:#f5f9ff;max-width:17ch;margin:0;text-wrap:balance}
.heritage-help{width:100%;max-width:390px;aspect-ratio:16/9;margin:0;isolation:isolate}
/* Beside the photograph the column takes the photograph's height and the scene takes the room between the
   heading and the button (up to the height at which it fills its 390 px width). From 1280 px up the band keeps
   its height. Below that the scene never falls under a fair size: see the two blocks further down (1025 to 1279 px
   a least height; 1024 px and below, and on phones, a box of the scene's own shape). */
body[data-page="home"] .heritage-support-grid.has-phone>.heritage-assistance{align-self:stretch;grid-template-rows:auto 1fr auto}
body[data-page="home"] .heritage-support-grid.has-phone .heritage-help{align-self:center;height:100%;max-height:336px}
/* Contact shadow: the pile stands on the band. Sized from the box height, which is what the scene is fitted to. */
.heritage-help::before{content:"";position:absolute;z-index:-1;left:50%;bottom:-2.6%;height:9%;aspect-ratio:11.5/1;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(3,9,30,.62),rgba(3,9,30,.3) 52%,rgba(3,9,30,0));pointer-events:none}
.heritage-assistance>.btn{margin:0;min-height:56px;max-width:100%;min-inline-size:min(240px,100%);font-size:18px;padding-inline:28px}
body[data-page="home"] .sec-reviews .reviews-plate::before{opacity:.17}
html[lang="fa"] .heritage-eyebrow{letter-spacing:0;text-transform:none}
html[lang="fa"] .heritage-stat-number{font-family:var(--f-text);font-size:clamp(27px,3.2vw,42px);line-height:1.6}
html[lang="fa"] .heritage-assistance>.h2{line-height:1.65;font-size:clamp(27px,3vw,36px);max-width:none}
/* Small desktops: the photograph is short there and left the scene only about 219 px. It gets at least the height
   it has at 1024 px (below), so the scene does not shrink when the window grows past 1024 px. */
@media(min-width:1025px) and (max-width:1279px){
 body[data-page="home"] .heritage-support-grid.has-phone .heritage-help{min-height:258px}
}
@media(max-width:1024px){
 /* Narrow column or stacked: the box takes the scene's own shape (the cropped view is 1194 x 1028), so the scene
    fills it instead of standing small in the middle of a 16:9 box. The band is taller by that much, once. */
 .heritage-help,body[data-page="home"] .heritage-support-grid.has-phone .heritage-help{aspect-ratio:1194/1028;height:auto;max-height:none;max-width:clamp(250px,31vw,300px)}
 body[data-page="home"] .heritage-support-grid.has-phone{grid-template-columns:minmax(0,1.2fr) minmax(250px,1fr);padding:30px;gap:24px}
 .heritage-stat{padding:20px 16px 26px}.heritage-stat-number{font-size:44px}.heritage-stat-label{font-size:14px}
}
@media(max-width:767px){
 body[data-page="home"] .home-heritage-stats{padding-top:40px}.heritage-stats-grid{grid-template-columns:1fr;gap:14px}
 .heritage-stat{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;padding:22px 20px 26px;border-radius:22px;align-items:start}
 .heritage-stat-art{width:156px;height:125px;margin-bottom:10px}.heritage-stat-number{font-size:48px}.heritage-stat-label{margin-top:8px;font-size:15px;max-width:27ch}
 .heritage-stat-disclosure{padding-inline:16px}
 body[data-page="home"] .phil__copy>.heritage-phil-actions{margin-top:24px}
 body[data-page="home"] .heritage-support-grid,body[data-page="home"] .heritage-support-grid.has-phone{grid-template-columns:1fr;padding:20px;gap:26px;border-radius:22px}
 .heritage-phone{border-radius:17px}.heritage-phone-image{border-radius:17px}.heritage-assistance{justify-self:center;padding:0 4px 8px;gap:18px}.heritage-assistance>.h2{max-width:22ch}
 .heritage-help,body[data-page="home"] .heritage-support-grid.has-phone .heritage-help{max-width:280px}
 /* on a phone the shadow under the pile is small; it is drawn a little deeper and stronger so the pile still stands */
 .heritage-help::before{bottom:-4%;height:12%;aspect-ratio:9/1;background:radial-gradient(closest-side,rgba(3,9,30,.78),rgba(3,9,30,.42) 55%,rgba(3,9,30,0))}
 .heritage-budget-veil{background:linear-gradient(180deg,#123c6970,#11295ba1 62%,#0b1c45c9)}
 body[data-page="home"] #philosophy .phil::before,body[data-page="home"] #home-heritage-support>.sec__inner::before{background-size:300px auto}
 html[lang="fa"] .heritage-stat-number{font-size:27px}
}
@media(prefers-reduced-motion:reduce){.heritage-budget-poster{transition:none}}
@media(forced-colors:active){
 .heritage-motion,.heritage-stat-art,.heritage-budget,body[data-page="home"] #philosophy .phil::before,body[data-page="home"] #home-heritage-support>.sec__inner::before{display:none}
 .heritage-stat,.heritage-support-grid{background:Canvas!important;color:CanvasText!important;border-color:CanvasText!important;box-shadow:none!important}
 .heritage-stat-number,.heritage-stat-label,.heritage-stat-disclosure,.heritage-assistance>.h2{color:CanvasText!important}
}
@media print{.heritage-budget,.heritage-motion,.heritage-finance,body[data-page="home"] #philosophy .phil::before,body[data-page="home"] #home-heritage-support>.sec__inner::before{display:none}.heritage-stat{break-inside:avoid}.heritage-stat-disclosure{color:#222}}

/* Narrow phones: reserve room for Persian monetary labels without widening the grid. */
@media(max-width:380px){
 .heritage-stat{grid-template-columns:minmax(0,1fr);padding:20px 18px 24px}
 .heritage-stat-art{width:144px;height:116px}
 .heritage-stat-number{font-size:44px}
 .heritage-stat-label{font-size:13px;overflow-wrap:anywhere}
 html[lang="fa"] .heritage-stat-number{font-size:25px}
}
