.tax-story {--paper:#f8f7f2;--bronze:#977547;--ease:cubic-bezier(.22,.75,.18,1);background:var(--paper)}
.tax-story .hero {min-height:clamp(510px,67vh,700px)}
.tax-story .hero-copy {padding-block:70px}
.tax-story .hero-background {transform:none}
.tax-story .hero h1 {overflow:hidden;font-size:clamp(45px,5vw,78px);line-height:1.32}
.tax-story .hero h1 span {display:block}
.tax-story .hero .intro {max-width:32em}
.tax-story .story-actions {display:flex;align-items:center;gap:27px;margin-top:26px;flex-wrap:wrap}
.tax-story .story-actions .hero-link {margin:0}
.tax-story .film-trigger,.tax-story .film-close {font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.tax-story .film-trigger {color:white;display:inline-flex;gap:12px;align-items:center;padding:0;font-size:15px}
.tax-story .film-play {display:grid;place-items:center;border:1px solid #d7c2a4;border-radius:50%;width:42px;height:42px;padding-left:2px;font:12px/1 Arial;color:#f8dfba;transition:background .3s}
.tax-story .film-trigger:hover .film-play {background:#ffffff26}
.tax-story .partner {padding-block:clamp(44px,5.5vw,88px)}
.tax-story .partner-photo {padding:0 15px 20px 0}
.tax-story .partner-photo>img {aspect-ratio:1.72;clip-path:inset(0 round var(--arch,13%) 0 0 0)}
.tax-story .logo-plate {padding:12px 22px}
.tax-story .services {background:#f6f5ef}
.tax-story .service-grid {margin-top:0}
.tax-story .service-grid .scene {grid-area:photo;position:relative;width:100%;overflow:hidden;align-self:center;min-width:0;aspect-ratio:2.48}
.tax-story .scene .service-photo {position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.065) translateY(var(--scene-offset,0px))}
.tax-story .service-grid article {background:#fcfbf8}
.tax-story .service-grid article>div {padding-block:clamp(12px,1.8vw,28px)}
.tax-story .service-grid h3::before {content:none}
.tax-story dialog {padding:0;width:min(1000px,94vw);max-height:94dvh;max-width:100vw;background:#11273b;color:white;border:1px solid #b49c77;border-radius:2px}
.tax-story dialog::backdrop {background:#071724df}
.tax-story .film-head {display:flex;align-items:center;justify-content:space-between;padding:12px 20px;gap:12px}
.tax-story .film-head h2 {color:white!important;font-size:19px}
.tax-story .film-head h2 span {font:italic 14px Georgia;color:#e2d0b6}
.tax-story .film-close {font-size:14px;color:#fff;padding:7px}
.tax-story dialog video {width:100%;max-height:74dvh;display:block;background:#111}
.tax-story button:focus-visible {outline:2px solid #c5a273;outline-offset:4px}
@media(min-width:768px) {
  .tax-story .service-grid article:nth-child(even) .scene {--wipe-from:inset(0 0 0 12%)}
}
@media(max-width:767px) {
 .tax-story .hero {min-height:clamp(390px,58svh,500px)}
 .tax-story .hero-copy {padding-block:40px}
 .tax-story .hero h1 {font-size:clamp(32px,8.6vw,52px)}
 .tax-story .story-actions {gap:18px;margin-top:19px}
 .tax-story .film-trigger,.tax-story .hero-link {font-size:14px}
 .tax-story .film-play {width:34px;height:34px}
 .tax-story .service-grid .scene {aspect-ratio:2.32}
 .tax-story .service-grid article>div {padding-block:15px 18px}
}
@media(prefers-reduced-motion:no-preference) {
 .tax-story .hero h1 span {animation:tax-enter .95s var(--ease) both}
 .tax-story .hero .intro {animation:intro-arrive .85s var(--ease) .28s both}
 .tax-story .chapter-enter .scene,.tax-story .chapter-enter .partner-photo {animation:tax-reveal .8s var(--ease) both}
 .tax-story .chapter-enter>div:not(.scene) {animation:tax-fade .7s var(--ease) .07s both}
}
@keyframes intro-arrive {from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes tax-enter {from{transform:translateY(100%)}to{transform:translateY(0)}}
@keyframes tax-fade {from{opacity:.25;transform:translateY(13px)}to{opacity:1;transform:none}}
@keyframes tax-reveal {from{clip-path:var(--wipe-from,inset(0 12% 0 0))}to{clip-path:inset(0)}}

/* Fixed navigation remains transparent as each chapter passes underneath it. */
html body header#tax-mast.bde-header-builder-1931-100 {
  --mast-ink:#fff;
  background:transparent!important;
  box-shadow:none!important;
  border-bottom:0!important;
}
#tax-mast [data-light-underlay] {--mast-ink:var(--yfg-brand-navy,#172436)}
header#tax-mast img[data-yfg-brand-logo] {filter:brightness(0) invert(1)}
header#tax-mast [data-light-underlay] img[data-yfg-brand-logo] {filter:none}
@supports (mask-image:url("")) or (-webkit-mask-image:url("")) {
  /* Tint the official SVG silhouette without changing the dimensions of the link. */
  #tax-mast .bde-image .breakdance-image-link {position:relative}
  #tax-mast .bde-image .breakdance-image-link::after {
    content:"";
    position:absolute;
    inset:0;
    background-color:var(--mast-ink);
    -webkit-mask:url("assets/yfg-brand-logo.svg") center/contain no-repeat;
    mask:url("assets/yfg-brand-logo.svg") center/contain no-repeat;
    pointer-events:none;
  }
  #tax-mast img[data-yfg-brand-logo] {opacity:0}
}
header#tax-mast .breakdance-menu-toggle .breakdance-menu-toggle-lines,
header#tax-mast .breakdance-menu-toggle .breakdance-menu-toggle-lines::before,
header#tax-mast .breakdance-menu-toggle .breakdance-menu-toggle-lines::after {background:var(--mast-ink)!important}
@media(min-width:768px) {
 header#tax-mast .breakdance-menu-list>li>.breakdance-menu-link,
 header#tax-mast .bde-button-1931-107 .button-atom__text,
 header#tax-mast .trp-current-language-item__wrapper :is(a,span,svg),
 header#tax-mast .trp-current-language-item__wrapper {color:var(--mast-ink)!important;text-shadow:none}
 header#tax-mast .trp-shortcode-anchor,header#tax-mast .trp-shortcode-overlay:not(:has(.trp-switcher-dropdown-list:not([hidden]))),
 header#tax-mast .trp-current-language-item__wrapper {background:transparent!important;--bg:transparent;--text:var(--mast-ink)}
 header#tax-mast .bde-icon-icon svg path {fill:var(--mast-ink)!important}
 header#tax-mast .trp-shortcode-arrow path {stroke:var(--mast-ink)!important}
 header#tax-mast .breakdance-menu-toggle[aria-expanded="true"] + .breakdance-menu-list {--mast-ink:var(--yfg-brand-navy,#172436)}
}
@media(min-width:768px) and (max-width:1119px) {
  #tax-mast .breakdance-menu-toggle[aria-expanded="true"] + .breakdance-menu-list {
    height:auto;
    max-height:calc(100dvh - 108px);
    visibility:visible;
  }
}
#tax-mast {position:fixed!important;inset:0 0 auto!important;transform:none!important;z-index:1000}
.tax-story {margin-top:0}
.tax-story .hero {min-height:clamp(580px,88svh,940px);align-items:center}
.tax-story .hero-copy {text-align:center;padding:var(--mast-height,92px) 0 clamp(40px,13vh,140px)}
.tax-story .hero h1 {font-size:clamp(48px,5.6vw,92px);margin:0;font-weight:500}
.tax-story .hero .intro {font-size:15px;max-width:34em;margin:18px auto 0;line-height:1.95;text-wrap:pretty}
.tax-story .hero::after {background:linear-gradient(180deg,rgba(6,27,52,.10),rgba(6,27,52,.18) 56%,transparent 78%)}
.tax-story .partner-play {position:absolute;bottom:35px;left:20px;display:grid;place-items:center;width:46px;height:46px;padding:0 0 0 3px;border:1px solid #ffffffc7;border-radius:50%;background:#132e53ac;color:#fff;cursor:pointer;font:14px Arial}
.tax-story .partner-play:hover {background:#132e53}
@media(max-width:767px){
 .tax-story .hero {min-height:clamp(510px,89svh,860px)}
 .tax-story .hero-copy {width:90%;padding:var(--mast-height,60px) 0 15svh}
 .tax-story .hero h1 {font-size:clamp(32px,9.4vw,54px)}
 .tax-story .hero .intro {max-width:24em;margin:16px auto 0;font-size:14px}
 .tax-story .hero-background {object-position:center}
}

@media(min-width:1024px) {
 #tax-mast .bde-columns-1931-105,
 #tax-mast .bde-columns-1931-105 :is(.bde-column,.bde-shortcode,.bde-button__button,.trp-shortcode-switcher__wrapper,.trp-shortcode-switcher,.trp-current-language-item__wrapper,.trp-language-item__current) {background:transparent!important;box-shadow:none!important}
 #tax-mast .trp-current-language-item__wrapper .trp-language-item-name {color:var(--mast-ink)!important}
 #tax-mast .trp-switcher-dropdown-list {background:white!important;color:#172436!important}
}

.tax-story .hero-current {opacity:0;pointer-events:none}
.tax-story .hero-current.is-playing {opacity:1}

/* Coastal chapter: the curved sheet travels over the hero with native scroll. */
.tax-story .partner-stage {position:relative;isolation:isolate;container-type:inline-size}
.tax-story .partner-stage .hero {position:sticky;top:0;min-height:100svh}
.tax-story .partner {
  position:relative;z-index:1;display:block;margin-top:70svh;
  background:#c1d8dd;color:#162e48;padding:0;
  --crown-rise:50cqw;
  border-radius:50% 50% 0 0 / var(--crown-rise) var(--crown-rise) 0 0;
}
.tax-story .partner-crown {position:relative;text-align:center;padding:21cqw 0 clamp(44px,5vw,74px)}
.tax-story .partner-lettering {position:absolute;left:0;top:0;width:100%;height:var(--crown-rise);overflow:visible;pointer-events:none}
.tax-story .partner-lettering text {fill:#24435b;font:clamp(27px,3.05cqw,78px) Georgia,serif;letter-spacing:.12em}
.tax-story #partner-heading {position:relative;margin:0;font:400 clamp(28px,3.1vw,48px)/1.4 "Songti SC","Noto Serif SC",serif!important;color:#19334c!important;letter-spacing:.1em}
.tax-story .partner-rule {width:1px;height:clamp(98px,18svh,186px);background:#64808b;margin:clamp(28px,3.5vw,48px) auto 0;transform-origin:top}
.tax-story .partner-layout {display:grid;grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr);align-items:center;gap:10%;width:min(1080px,86%)}
.tax-story .partner-brand {margin:clamp(32px,4vw,56px) auto 0}
.tax-story .partner-brand img {display:block;width:clamp(175px,17vw,240px);height:auto;margin-inline:auto;mix-blend-mode:multiply}
.tax-story .hero-background {transform:scale(var(--coast-scale,1));transform-origin:50% 60%}
.tax-story .partner-title p {margin:0;font-size:16px;color:#2d475c;max-width:31em}
.tax-story .partner-photo {margin:0;padding:0}
.tax-story .partner-photo>img {
  aspect-ratio:1.91;height:auto;object-position:50% 58%;clip-path:none;border-radius:0;
  filter:saturate(.77) contrast(.97) brightness(1.055);
}
.tax-story .partner-photo::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:rgba(79,110,144,.07);mix-blend-mode:color;
}
.tax-story .partner .logo-plate {padding:8px 15px}
.tax-story .partner .logo-plate img {width:105px}
.tax-story .partner-play {bottom:25px;left:14px}
@media(max-width:767px) {
  html body:has(.tax-story .partner-stage) {overflow-x:clip!important;overflow-y:visible!important}
  .tax-story .partner {--crown-rise:min(50vw,260px);margin-top:100svh}
  .tax-story .partner-crown {padding:min(39vw,208px) 0 clamp(35px,9vw,58px)}
  .tax-story .partner-lettering text {font-size:clamp(22px,7vw,34px)}
  .tax-story #partner-heading {font-size:clamp(25px,6.8vw,35px)!important}
  .tax-story .partner-layout {width:min(84%,470px);grid-template-columns:1fr;gap:clamp(60px,15vw,84px)}
  .tax-story .partner-title {text-align:center}
  .tax-story .partner-rule {height:clamp(118px,19.5svh,186px);margin-top:32px}
  .tax-story .partner-title p {font-size:14px;text-align:start;line-height:1.85}
}
/* Only the enhanced screen layout stages an entrance. */
.tax-story #partner-heading span {display:inline-block}
@media screen and (prefers-reduced-motion:no-preference){
  .tax-story .awaiting-entry {opacity:0}
  .tax-story [data-partner-enter="arc"].has-entered text {
    animation:partner-arc-write 1.1s var(--ease) backwards;
  }
  .tax-story #partner-heading.has-entered {overflow:hidden}
  .tax-story #partner-heading.has-entered span {
    animation:partner-heading-rise .76s var(--ease) .06s backwards;
  }
  .tax-story #partner-heading.has-entered span + span {animation-delay:.17s}
  .tax-story .partner-rule.has-entered {animation:partner-rule-draw .9s var(--ease) .14s backwards}
  .tax-story .partner-brand.has-entered img {animation:partner-ink .86s var(--ease) .2s backwards}
  .tax-story .partner-photo.has-entered {animation:partner-photo-open .88s var(--ease) backwards}
  .tax-story .partner-title.has-entered {animation:partner-ink .8s var(--ease) .12s backwards}
  .tax-story .partner-architecture.has-entered {animation:partner-skyline 1.08s var(--ease) backwards}
}
@keyframes partner-arc-write {
  from {clip-path:inset(0 100% 0 0);opacity:.35}
  to {clip-path:inset(0);opacity:1}
}
@keyframes partner-heading-rise {
  from {opacity:0;transform:translateY(75%)}
  to {opacity:1;transform:none}
}
@keyframes partner-rule-draw {from {transform:scaleY(0)} to {transform:scaleY(1)}}
@keyframes partner-ink {
  from {opacity:0;transform:translateY(10px)}
  to {opacity:1;transform:none}
}
@keyframes partner-photo-open {
  from {clip-path:inset(0 0 14% 0);opacity:.3}
  to {clip-path:inset(0);opacity:1}
}
@keyframes partner-skyline {
  from {opacity:.1;transform:translateY(10px)}
  to {opacity:1;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .tax-story .partner-stage .hero {position:relative}
  .tax-story .partner {margin-top:0}
}

.tax-story .partner-architecture {
  display:block;width:100%;margin:clamp(48px,5vw,84px) auto 0;
  scroll-margin-top:calc(var(--mast-height,92px) + 18px);
}
.tax-story .partner-architecture img {display:block;width:100%;height:auto;object-fit:contain}

/* Quiet service introduction. */
.tax-story .services {padding-top:0}
.tax-story .service-intro {position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;padding:90px 0 50px;background:#f6f5ef}
.tax-story .service-intro-copy {position:relative;text-align:center;width:min(88%,760px);margin:auto}
.tax-story .service-intro-copy h2 {margin:0;font-size:clamp(38px,4.2vw,68px);line-height:1.3;color:#172d47}
.tax-story .service-intro-copy p {font-size:clamp(15px,1.3vw,19px);line-height:1.9;color:#45576b;margin:22px auto 0;text-wrap:balance}
@media(max-width:767px){
  .tax-story .service-intro {padding:64px 0 24px}
  .tax-story .service-intro-copy p {max-width:21em;margin-top:16px}
  .tax-story .service-intro-copy h2 {font-size:clamp(34px,8vw,48px)}
}


/* Use the same portrait and reading column for each service, mirrored on alternate spreads. */
.tax-story .service-grid {gap:0}
.tax-story .service-grid article.service-spread {
  position:relative;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:3fr 2fr;
  grid-template-areas:"title portrait" "copy portrait";
  gap:clamp(24px,2.4vw,40px) clamp(32px,6vw,96px);
  padding:clamp(40px,4vw,70px) 5%;
  background:transparent;
  scroll-margin-top:var(--mast-height,92px);
}
.tax-story .service-grid .service-spread.spread-left {
  grid-template-areas:"portrait title" "portrait copy";
}
.tax-story .service-spread .spread-title {
  grid-area:title;
  align-self:end;
  margin:0;
  color:#182a43;
  font-family:"PingFang SC","Microsoft YaHei",sans-serif!important;
  font-weight:400;
  font-size:clamp(24px,2.25vw,36px);
  line-height:1.4!important;
  letter-spacing:0;
}
.tax-story .service-spread .spread-title {margin-inline-start:8%;white-space:nowrap}
.spread-title span {display:inline}
.tax-story .service-spread .spread-portrait {
  grid-area:portrait;
  width:min(100%,450px);
  margin:0;
  justify-self:end;
}
.tax-story .spread-left .spread-portrait {justify-self:start}
.spread-portrait img {display:block;width:100%;height:auto}
.tax-story .service-spread .spread-copy {
  grid-area:copy;
  align-self:start;
  max-width:26em;
  margin:0 0 0 8%;
  font-size:clamp(15px,1.1vw,18px);
  line-height:1.88;
  text-wrap:pretty;
}
@media(max-width:767px) {
  .tax-story .service-grid article.service-spread {
    grid-template-columns:24% minmax(0,1fr);
    grid-template-rows:auto auto auto;
    grid-template-areas:". title" ". portrait" ". copy";
    gap:0;
    padding:clamp(30px,7.5vw,50px) 0 clamp(32px,8vw,54px);
  }
  .tax-story .service-grid .service-spread.spread-left {
    grid-template-columns:minmax(0,1fr) 24%;
    grid-template-areas:"title ." "portrait ." "copy .";
  }
  .tax-story .service-spread .spread-title {font-size:clamp(20px,4.8vw,28px);margin-inline-start:0}
  .tax-story .service-spread .spread-portrait {width:100%;margin-top:clamp(20px,5.5vw,34px)}
  .tax-story .service-spread .spread-copy {max-width:none;margin:20px 0 0;font-size:15px}
}
.tax-story .services {position:relative;padding-bottom:40px}
@media(prefers-reduced-motion:no-preference) {
  .service-spread.chapter-enter .spread-title span {animation:tax-fade .8s var(--ease) backwards}
  .service-spread.chapter-enter .spread-title span + span {animation-delay:.07s}
  .service-spread.chapter-enter .spread-portrait {animation:tax-reveal .9s var(--ease) both}
  .spread-left {--wipe-from:inset(0 0 0 12%)}
}

/* Image motion uses the ordinary image decoder, including when inline video is unavailable. */
.tax-story .motion-slot {display:grid}
.motion-slot > * {grid-area:1 / 1;min-width:0}
.motion-slot :is(img, video) {width:100%;height:auto;display:block}
.motion-slot picture {display:block}
.tax-story.use-motion-images .motion-film,
.tax-story.use-motion-images .hero-current {display:none}
@media (max-width:767px), (pointer:coarse), (prefers-reduced-motion:reduce) {
  .tax-story .motion-film,.tax-story .hero-current {display:none}
}

/* Complete desk scene with the caption in its upper-right negative space. */
.tax-story .service-grid #bookkeeping {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;
  grid-template-areas:"scene";gap:0;padding:50px 0 60px;
}
.tax-story #bookkeeping .bookkeeping-caption {
  grid-area:scene;z-index:1;align-self:start;justify-self:end;width:43%;padding:28px 0 0;
}
.tax-story #bookkeeping .spread-title {margin:0;white-space:nowrap}
.tax-story #bookkeeping .spread-copy {margin:24px 0 0;max-width:none}
.tax-story #bookkeeping .spread-portrait {
  grid-area:scene;align-self:start;justify-self:start;width:76%;margin:0 0 0 8%;
}
@media(max-width:767px) {
  .tax-story .service-grid #bookkeeping {padding:28px 0 44px}
  .tax-story #bookkeeping .bookkeeping-caption {width:55%;padding:0}
  .tax-story #bookkeeping .spread-copy {font-size:15px;line-height:1.88;margin-top:20px}
  .tax-story #bookkeeping .spread-portrait {
    width:calc(85vw);margin-inline-start:-5.5vw;
    margin-top:clamp(22px,calc(330px - 70vw),106px);
  }
}

/* Audit mirrors bookkeeping, with a complete desk and left-hand caption. */
.tax-story .service-grid #audit {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;
  grid-template-areas:"scene";gap:0;padding:50px 0 60px;
}
.tax-story #audit .audit-caption {
  grid-area:scene;z-index:1;align-self:start;justify-self:start;width:43%;padding:28px 0 0;
}
.tax-story #audit .spread-title {margin:0;white-space:nowrap}
.tax-story #audit .spread-copy {margin:24px 0 0;max-width:none}
.tax-story #audit .spread-portrait {
  grid-area:scene;align-self:start;justify-self:end;width:76%;margin:0 calc((100% - 100vw)/2) 0 0;
}
@media(max-width:767px) {
  .tax-story .service-grid #audit {padding:28px 0 44px}
  .tax-story #audit .audit-caption {width:55%;padding:0}
  .tax-story #audit .spread-copy {font-size:15px;line-height:1.88;margin-top:20px}
  .tax-story #audit .spread-portrait {
    width:85vw;margin-inline-end:-5.5vw;
    margin-top:clamp(22px,calc(330px - 70vw),106px);
  }
}

/* Tax consultation: complete scene at the left edge, caption above right. */
.tax-story .service-grid #tax-planning {
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;
  grid-template-areas:"scene";gap:0;padding:50px 0 60px;
}
.tax-story #tax-planning .tax-caption {
  grid-area:scene;z-index:1;align-self:start;justify-self:end;width:43%;padding:28px 0 0;
}
.tax-story #tax-planning .spread-title {margin:0;white-space:nowrap}
.tax-story #tax-planning .spread-copy {margin:24px 0 0;max-width:none}
.tax-story #tax-planning .spread-portrait {
  grid-area:scene;align-self:start;justify-self:start;width:76%;margin:0 0 0 calc((100% - 100vw)/2);
}
@media(max-width:767px) {
  .tax-story .service-grid #tax-planning {padding:28px 0 44px}
  .tax-story #tax-planning .tax-caption {width:55%;padding:0}
  .tax-story #tax-planning .spread-copy {font-size:15px;line-height:1.88;margin-top:20px}
  .tax-story #tax-planning .spread-portrait {
    width:85vw;margin-inline-start:-5.5vw;
    margin-top:clamp(82px,calc(170px - 20vw),106px);
  }
}
