@font-face{font-family:"YFG Service Serif";src:url("assets/service-title-font-v51.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"YFG Service Sans";src:url("assets/service-body-font-v51.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
/* Four continuous photographic panels, measured from the supplied 1080px PSD.
   Text stays live; colour and Gaussian blur have independent gradient masks. */
.tax-story .services {padding-bottom:0}
.tax-story .service-panels {display:block;width:100%;background:#041e42}
.tax-story .service-panel {
  --tint-direction:90deg;--photo-position:50% 55%;--photo-scale:1;
  position:relative;isolation:isolate;overflow:hidden;
  height:clamp(580px,72svh,860px);color:#fff;background:#041e42;
  scroll-margin-top:var(--mast-height,92px);
}
.tax-story .service-panel.panel-right {--tint-direction:270deg}
.tax-story .service-panel .panel-media,
.tax-story .service-panel .panel-blur,
.tax-story .service-panel .panel-tint {position:absolute;inset:0;margin:0;padding:0;pointer-events:none}
.tax-story .service-panel .panel-media {z-index:0}
.tax-story .service-panel :is(.panel-media,.panel-blur) img {
  display:block;width:100%;height:100%;max-width:none;object-fit:cover;
  object-position:var(--photo-position);transform:scale(var(--photo-scale));
}
.tax-story .service-panel .panel-blur {
  z-index:1;
  -webkit-mask-image:linear-gradient(var(--tint-direction),#000 0%,#000 8%,#000b 22%,#0003 38%,transparent 60%);
  mask-image:linear-gradient(var(--tint-direction),#000 0%,#000 8%,#000b 22%,#0003 38%,transparent 60%);
}
.tax-story .service-panel .panel-blur img {filter:blur(clamp(8px,1.5vw,22px))}
.tax-story .service-panel .panel-tint {
  z-index:2;
  background:linear-gradient(var(--tint-direction),rgba(4,30,66,.96) 0%,rgba(4,30,66,.84) 13%,rgba(4,30,66,.68) 32%,rgba(4,30,66,.57) 55%,rgba(4,30,66,.54) 100%);
}
.tax-story .service-panel .panel-copy {
  --yfg-type-copy:#fff;position:relative;z-index:3;width:min(440px,40%);padding:0;
  margin:0 0 0 max(7vw,calc((100% - 1240px)/2));top:28%;
}
.tax-story .service-panel.panel-right .panel-copy {
  margin-left:auto;margin-right:max(7vw,calc((100% - 1240px)/2));text-align:right;
}
.tax-story .service-panel .panel-copy h3 {
  margin:0;width:max-content;max-width:100%;color:#fff;
  font-family:var(--yfg-font-latin),"YFG Service Serif",serif!important;
  font-size:clamp(32px,3vw,48px);font-weight:400;line-height:1.3;letter-spacing:0;
}
.tax-story .service-panel.panel-right h3 {margin-left:0;position:relative;left:100%;transform:translateX(-100%)}
.tax-story .service-panel .panel-copy p {
  margin:28px 0 0;max-width:none;color:#fff;
  font:400 clamp(16px,1.25vw,20px)/1.8 var(--yfg-font-latin),"YFG Service Sans",sans-serif;
  font-family:var(--yfg-font-latin),"YFG Service Sans",sans-serif!important;
  text-wrap:pretty;
}
.tax-story #governance.service-panel {--photo-position:50% 15%}
.tax-story #tax-planning.service-panel {--photo-position:50% 50%}
@media(max-width:767px) {
  .tax-story .service-panel {height:112.78vw;min-height:360px}
  .tax-story .service-panel .panel-copy {
    width:55.56%;top:27.1%;margin-left:11.11%;margin-right:0;
  }
  .tax-story .service-panel.panel-right .panel-copy {margin-left:auto;margin-right:12.22%}
  .tax-story .service-panel .panel-copy h3 {
    font-size:6.944vw;max-width:77vw;white-space:nowrap;
  }
  .tax-story .service-panel .panel-copy p {font-size:3.704vw;line-height:1.8;margin-top:5.3vw}
  .tax-story #bookkeeping.service-panel {--photo-scale:1.14;--photo-position:50% 62%}
  .tax-story #audit.service-panel {--photo-position:50% 50%}
  .tax-story #tax-planning.service-panel {--photo-position:50% 50%}
  .tax-story #governance.service-panel {--photo-position:50% 34%}
  .tax-story #governance.service-panel h3 {max-width:none}
}
/* Chamfered introduction, overlapping the harbour image above. */
.tax-story .services {--intro-cut:clamp(24px,5.8vw,72px);background:transparent;z-index:2;margin-top:calc(-1 * var(--intro-cut))}
.tax-story .service-intro {
  clip-path:polygon(0 var(--intro-cut),var(--intro-cut) 0,calc(100% - var(--intro-cut)) 0,100% var(--intro-cut),100% 100%,0 100%);
  padding:clamp(100px,10vw,150px) 0 clamp(72px,8vw,112px);
}
.tax-story .services .service-intro-copy {width:min(86%,960px)}
.tax-story .services .service-intro-copy h2 {font-family:var(--yfg-font-latin),"YFG Service Serif",serif!important;font-size:clamp(30px,3.8vw,54px);font-weight:400;line-height:1.5}
.tax-story .services .service-intro-copy h2 span {display:inline-block}
.tax-story .services .service-intro-copy p {font-family:var(--yfg-font-latin),"YFG Service Sans",sans-serif!important;max-width:40em;margin-top:24px}
.tax-story .service-panels {display:grid;gap:clamp(6px,.6vw,10px);background:#f6f5ef}
/* Scroll progress, not a once-on-entry timer. Static layout is the fallback. */
@media(prefers-reduced-motion:no-preference) {
  .tax-story .services.services-motion .service-intro {clip-path:polygon(0 var(--intro-edge,var(--intro-cut)),var(--intro-edge,var(--intro-cut)) 0,calc(100% - var(--intro-edge,var(--intro-cut))) 0,100% var(--intro-edge,var(--intro-cut)),100% 100%,0 100%)}
  .tax-story .services.services-motion .service-intro-copy h2 {opacity:var(--intro-title,1);transform:translateY(var(--intro-rise,0px))}
  .tax-story .services.services-motion .service-intro-copy p {opacity:var(--intro-copy,1);transform:translateY(var(--intro-rise,0px))}
  .tax-story .services.services-motion .service-panel .panel-media,
  .tax-story .services.services-motion .service-panel .panel-blur {opacity:var(--panel-arrival,1);transform:scale(var(--panel-zoom,1))}
  .tax-story .services.services-motion .service-panel .panel-blur img {filter:blur(var(--panel-blur-radius,0px))}
  .tax-story .services.services-motion .service-panel .panel-tint {opacity:var(--panel-shade,1)}
  .tax-story .services.services-motion .service-panel .panel-copy {opacity:var(--panel-copy,1);transform:translateY(var(--panel-rise,0px));animation:none}
}
@media(max-width:767px) {
  .tax-story .services .service-intro-copy h2 span {display:block}
  .tax-story .services .service-intro-copy p {font-size:15px;max-width:24em;line-height:1.9}
  .tax-story .services .service-intro-copy p br {display:none}
}
