@media (max-width:900px){
  nav .menu{position:relative;width:24px;height:24px;border:0;padding:0;font-size:0;background:none}
  nav .menu::before{content:'';position:absolute;left:2px;top:4px;width:20px;height:2px;background:var(--ink);border-radius:99px;box-shadow:0 7px 0 var(--ink),0 14px 0 var(--ink)}
}
/* Mobile layouts from the 390px Fervent designs. */
@media (max-width:600px){
  nav{height:56px;padding:16px;border-bottom:1px solid #2e1f001a;gap:0}
  nav .nav-logo{width:115px;height:auto}
  nav .navlinks.open{top:56px;padding:24px 16px;max-height:calc(100dvh - 56px)}
  .main-hero{height:90vh;min-height:0}
  .main-hero-copy{left:16px;right:16px;top:auto;bottom:32px;gap:32px}
  .main-hero h1{font-size:40px;line-height:1.1;letter-spacing:-2px}
  .main-hero-copy p{font-size:18px;line-height:1.2}
  .hero-short-rule{width:200px;height:2px;margin:24px 0}
  .approach-comparison{padding:80px 16px}
  .comparison-intro h2{font-size:32px;line-height:1.2;letter-spacing:-.64px}
  .comparison-intro>div{margin-top:40px;font-size:16px}
  .comparison-intro p+p{margin-top:12px}
  .comparison-model{margin-top:120px}
  .better-approach{padding:80px 16px}
  .better-approach>h2{font-size:36px}
  .main-services{padding:80px 0 80px 16px}
  .rail-intro{padding-right:16px}
  .main-service-card{width:calc(100vw - 32px);height:500px}
  .recent-work{padding:80px 16px}
  .recent-work>.rail-window{width:calc(100% + 16px)}
  .work-card{width:calc(100vw - 32px);height:450px;padding:16px}
  .work-card>div{padding:40px 12px}
  .work-card h3{font-size:24px}
  .work-meta{font-size:12px}
  .work-meta span{font-size:10px}
  .philosophy-hero{min-height:844px;padding:108px 16px 64px}
  .philosophy-hero h1{font-size:36px;line-height:1.1;letter-spacing:-1.44px}
  .philosophy-analysis:not(.mission-ready){padding:50px 16px 100px}
  .philosophy-statements,.philosophy-enrichment>h2,.philosophy-enrichment>p{font-size:32px;line-height:1.1;letter-spacing:-.64px}
  .qoe-backbone{padding:80px 16px;gap:40px}
  .all-hero{height:600px;padding:0 16px 64px;display:flex;align-items:flex-end}
  .all-hero h1{font-size:36px;line-height:1.1;letter-spacing:-1.44px}
  .service-catalog{padding:0 16px}
  .catalog-index{display:none}
  .catalog-rows{padding:64px 0;gap:60px}
  .catalog-row{gap:24px;min-height:0;border:0}
  .catalog-copy{gap:12px;padding:0}
  .catalog-copy h2{font-size:24px;letter-spacing:-.72px}
  .catalog-copy p{font-size:14px;line-height:1.5}
  .catalog-art{height:auto;aspect-ratio:605/400}
  .hero{min-height:640px;height:auto;padding:200px 16px 64px}
  .hero-symbol{height:80px;margin-bottom:55px}
  .hero-symbol svg{transform:scale(.65);transform-origin:center}
  .hero h1,.service-hero h1{font-size:32px;line-height:1.1;letter-spacing:-.64px;margin-bottom:12px}
  .hero p{font-size:14px;line-height:1.5;margin-bottom:24px}
  .diligence-sides{padding:64px 16px;gap:60px}
  .diligence-panel{padding:0}
  .accounting-grid{padding:40px 16px;gap:12px}
  .accounting-tile{min-height:80px;padding:16px}
  .accounting-tile p{font-size:16px;line-height:1.45}
  .forge-network{min-height:500px;padding:80px 16px}
  .data-analysis.data-service-copy{padding:80px 16px}
  .creds-page .creds-heading{padding:200px 16px 0}
  .creds-heading h1,.blog-heading h1{font-size:36px;line-height:1.1;letter-spacing:-1.8px}
  .creds-list{padding:48px 16px 80px}
  .creds-grid{gap:16px}
  .cred-card{height:auto;min-height:450px;padding:16px}
  .cred-card>div{min-height:418px;padding:40px 12px;gap:20px}
  .cred-card h2{font-size:24px;letter-spacing:-.96px}
  .cred-card-meta{font-size:12px}
  .cred-card-meta span{font-size:10px}
  .blog-page .blog-list{padding:200px 16px 80px}
  .blog-page .blog-list .blog-grid{margin-top:60px}
  .blog-filters button{padding:12px 16px}
  .detail-hero{min-height:600px;padding:0 16px 60px}
  .detail-hero .detail-hero-copy{padding-top:200px}
  .detail-hero h1{font-size:32px;line-height:1.2;letter-spacing:-.96px}
  .cred-detail-page .cred-hero{min-height:600px}
  .cred-body,.article-body{padding:80px 16px}
  .cred-body-grid{gap:80px}
  .cred-sidebar{grid-row:1}
  .creds-related,.articles-related{padding:80px 16px}
  .contact-hero{padding:200px 16px 80px}
  .contact-intro h1{font-size:32px;line-height:1.1;letter-spacing:-1.6px}
  .contact-hero-grid{gap:100px}
  .contact-booking{padding:64px 16px}
  .contact{padding:64px 16px}
  .footergrid{padding:50px 16px}
  .legal{padding:24px 16px}
}
@media (max-width:600px){
  .philosophy-heading h1 span{white-space:normal}
  .main-hero .button{background:var(--orange);color:#fffefa}
  .main-hero .button img{filter:brightness(0) invert(1)}
}

/* Section-level refinements from the 390px mobile frames. */
@media(max-width:600px){
 .homepage .hero-pattern{display:none}
 .homepage .main-hero:before{content:'';position:absolute;inset:0 0 auto auto;width:min(100%,384px);aspect-ratio:384/613;background:url('/assets/home-hero-mobile.svg') right top / contain no-repeat;animation:hero-contour-drift 32s ease-in-out infinite;pointer-events:none}
 .comparison-model{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto 414.5px auto;column-gap:16px;row-gap:32px}
 .comparison-switch{grid-column:1/-1;width:max-content;margin:0}
 .comparison-switch button{width:auto;max-width:none;font-size:14px}
 .comparison-bar,.comparison-metrics{display:contents}
 .comparison-scale{display:none}
 .comparison-bar .judgment,.comparison-bar .manipulation{grid-row:2;align-self:end;width:100%;padding:0;font-size:0;overflow:hidden;transition:height .85s cubic-bezier(.22,1,.36,1);background-repeat:repeat;background-position:left bottom}
 .comparison-bar .judgment{grid-column:1;height:112.5px;background-image:url('/assets/comparison-light-mobile.svg');background-size:171px 150px}
 .comparison-bar .manipulation{grid-column:2;height:337.5px;background-image:url('/assets/comparison-dark-mobile.svg');background-size:171px 450px}
 .comparison-model.fervent .judgment{height:337.5px;width:100%}
 .comparison-model.fervent .manipulation{height:112.5px}
 .comparison-metrics>div{grid-row:2;align-self:end;gap:8px;min-width:0;font-size:14px;line-height:1.5;transition:margin-bottom .85s cubic-bezier(.22,1,.36,1)}
 .comparison-metrics>div:nth-child(1){grid-column:1;margin-bottom:124.5px}
 .comparison-metrics>div:nth-child(2){grid-column:2;margin-bottom:349.5px}
 .comparison-model.fervent .comparison-metrics>div:nth-child(1){margin-bottom:349.5px}
 .comparison-model.fervent .comparison-metrics>div:nth-child(2){margin-bottom:124.5px}
 .comparison-metrics>div:nth-child(3){grid-row:3;grid-column:1/-1;align-items:center;text-align:center;margin:0}
 .comparison-metrics .metric{font-size:36px}.metric small{font-size:20px}
 .better-approach .approach-lead{font-size:16px}
 .approach-columns{margin-top:80px;gap:64px}
 .approach-columns article{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}
 .approach-columns figure,.approach-columns h3,.approach-columns .approach-subtitle{grid-column:1/-1}
 .approach-columns figure{width:64px;height:64px;margin-bottom:36px}
 .approach-columns figure svg{width:auto;height:auto;max-width:64px;max-height:64px}
 .approach-columns h3{font-size:24px}
 .approach-columns .approach-subtitle{font-size:16px;margin:12px 0 36px}
 .approach-columns .approach-pair{font-size:14px;margin:0;line-height:1.5}
 .approach-pair p:first-child{font-size:16px;margin-bottom:8px}
 .main-services{padding-top:100px;padding-bottom:100px;display:flex;flex-direction:column;gap:0}
 .main-services .rail-intro{display:contents}
 .main-services .rail-intro h2{order:0;font-size:32px;line-height:1.2;letter-spacing:-.64px;max-width:330px}
 .main-services .rail-window{order:2;margin-top:48px}
 .main-services .rail-controls{order:3;margin-top:40px}
 .homepage .main-services .rail-controls,.philosophy-page .main-services .rail-controls{order:1;margin-top:40px}
 .main-service-card{width:min(326px,calc(100vw - 48px));height:400px;padding:16px;gap:12px}
 .main-service-card figure{top:32px;height:175px}
 .main-service-card figure svg{transform:scale(.7);transform-origin:top center}
 .main-service-card h3{font-size:20px;letter-spacing:-.4px}
 .main-service-card p,.main-service-card .learn{font-size:14px}
 .main-service-card .circle{width:24px;height:24px}
 .rail-track{gap:12px}
 .work-heading{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:64px}
 .work-heading h2{max-width:100%;width:313px}
 .work-heading .button{font-size:12px;padding:12px 16px}
 .work-card{width:min(326px,calc(100vw - 48px));padding:12px;min-height:450px;height:auto}
 .work-card>div{min-height:426px;gap:20px}
 .work-controls{margin-top:48px}
 .philosophy-hero h1 span{display:inline;white-space:normal}
 .philosophy-hero h1 span+span:before{content:' '}
 .philosophy-subtitle{font-size:16px;line-height:1.5}
 .philosophy-intro{margin-top:12px;gap:40px}
 .philosophy-intro p{font-size:16px;line-height:1.5}
 .philosophy-hero>.philosophy-orbit{width:min(100%,400px);min-width:0;margin-bottom:0}
 .philosophy-hero-columns{margin-bottom:auto}
 .mission-ready .mission-scroll-content{padding-left:16px;padding-right:16px}
 .philosophy-analysis{--mission-size:32px}
 .diligence-sides{padding:40px 16px 80px;gap:80px}
 .diligence-panel h2{font-size:32px;letter-spacing:-.64px;margin-bottom:24px}
 .diligence-copy{font-size:18px;line-height:1.45;gap:20px;color:#2e1f00cc}
 .diligence-panel+article{border:0;padding-top:0}
 .featured{margin-top:64px}
 .credential{width:min(326px,100%);min-height:450px;padding:52px 24px;align-items:center;justify-content:space-between;gap:16px;text-align:center}
 .credential:before{inset:12px}
 .credential:after{content:'';display:block;order:-1;flex:none;width:80px;height:80px;background:url('/assets/page-10500.svg') center / contain no-repeat}
 .credential h3{font-size:24px;line-height:1.2;letter-spacing:-.96px}
 .credential p{justify-content:center;font-size:12px;line-height:1.5}
 .credential .tag{font-size:10px;padding:4px}
 .credential .learn{font-size:14px}
 .article-share{grid-row:1;margin:0 0 40px}
 .article-toc{grid-row:2}.article-content{grid-row:3}
}
@media(max-width:600px) and (prefers-reduced-motion:reduce){.homepage .main-hero:before{animation:none}}
.credential[hidden]{display:none!important}
.creds-list .cred-card[hidden],.creds-load-more[hidden]{display:none!important}
.creds-load-controls{display:flex;justify-content:center;margin:48px auto 0}
.creds-load-more{border:0;cursor:pointer;color:var(--ink);font:500 14px/1.4 'General Sans',sans-serif;padding:14px 28px}
.mobile-all-services{display:none}
@media(max-width:600px){.main-services .mobile-all-services{display:inline-flex;order:1;align-self:flex-start;margin-top:24px}}

/* Full-screen mobile navigation follows the mobile menu frames. */
@media(max-width:900px){
 body:has(nav .navlinks.open){overflow:hidden}
 nav:has(.navlinks.open){position:fixed;background:var(--paper);z-index:100}
 nav .menu{z-index:2}
 nav .menu[aria-expanded="true"]::before,nav .menu[aria-expanded="true"]::after{content:'';position:absolute;left:2px;top:11px;width:20px;height:2px;background:var(--ink);border-radius:99px;box-shadow:none}
 nav .menu[aria-expanded="true"]::before{transform:rotate(45deg)}
 nav .menu[aria-expanded="true"]::after{transform:rotate(-45deg)}
 nav .navlinks.open{position:fixed;top:74px;bottom:0;left:0;right:0;max-height:none;padding:50px 24px 24px;gap:32px;background:var(--paper);overflow-y:auto;overscroll-behavior:contain}
 nav .navlinks.open>a:not(.mobile-contact-link),nav .services-dropdown>summary{display:flex;align-items:center;min-height:45px;padding:8px 0;font:400 24px/1.2 'General Sans',sans-serif}
 nav .services-dropdown>summary{width:100%;justify-content:space-between}
 nav .services-dropdown .dropdown-chevron{width:16px;height:16px}
 nav .services-dropdown .services-menu{width:100%;max-width:none;margin:8px 0 0;padding:0 16px;background:transparent;box-shadow:none}
 nav .services-menu .all-services{margin-bottom:8px;color:#2e1f0080}
 nav .services-menu .service-menu-item{min-height:48px;margin:0;padding:8px 0}
 nav .services-menu .menu-art{background:var(--cream)}
 nav .services-menu .menu-title.sentient-light{font:400 16px/1.2 'General Sans',sans-serif!important;letter-spacing:0}
 nav .mobile-contact-link{display:flex;align-items:center;justify-content:center;gap:6px;min-height:41px;margin-top:auto;background:var(--orange);color:#fffefa;font:500 12px/1.4 'General Sans',sans-serif}
 nav .mobile-contact-link:after{content:'';width:5px;height:10px;background:url('/assets/cta-right-light.svg') center / contain no-repeat}
}
@media(max-width:600px){nav .navlinks.open{top:56px;padding:50px 16px 24px}}
@media(prefers-reduced-motion:reduce){.comparison-metrics>div{transition:none}}

@media(max-width:600px){
 .homepage .comparison-switch{margin-bottom:32px}
 .homepage .recent-work>.rail-window{width:100%;container-type:inline-size}
 .homepage .work-card{width:100cqw;max-width:none}
 .catalog-art svg{height:auto;max-width:none}
 #service-financial .catalog-art svg{width:72.81%}
 #service-tcfo .catalog-art svg{width:37.19%}
 #service-data .catalog-art svg{width:44.97%}
 #service-accounting .catalog-art svg{width:40.83%}
 .motion-scroll .wordfield{height:500px;min-height:0}
 .motion-scroll .terms{font-size:16px;line-height:1.2}
 .motion-scroll .terms span,.motion-scroll .terms span:nth-last-child(2),.motion-scroll .terms span:last-child{width:calc((100% - 48px)/3);max-width:none;white-space:normal;text-align:center}
 .motion-scroll .wordfield h2{font-size:32px;line-height:1.1;letter-spacing:-1.6px}
 .homepage .comparison-intro>div,.homepage .better-approach .approach-lead{font-weight:400}
 .homepage .main-services .rail-controls button:disabled{opacity:1;background:#edeade;border-color:#2e1f001f}
 .homepage .main-services .rail-controls button:disabled img{filter:brightness(0);opacity:.4}
 .homepage .work-heading .button{background:#f7f4e9;gap:6px}
 .homepage .work-controls{flex-direction:column;justify-content:center;gap:24px}
 .homepage .work-controls .rail-progress{width:184px;background:repeating-linear-gradient(to right,#ffffff4d 0 40px,transparent 40px 48px)}
 .homepage .work-controls .rail-progress:after{left:calc(var(--mobile-progress,0) * (100% - 40px));background:white}
 .homepage .work-controls .rail-controls button{opacity:1;border:0.5px solid #f4f2eb;background:#fffefa}
 .homepage .work-controls .rail-controls button img{filter:brightness(0)}
 .homepage .work-controls .rail-controls button:disabled{background:transparent}
 .homepage .work-controls .rail-controls button:disabled img{filter:none}
 .contact{height:auto;min-height:0;padding:64px 16px;align-items:flex-start}
 .contact .contours,body>footer>.footercontours{display:none}
 .contact-copy{gap:32px}
 .contact .cta-title{font-size:40px;line-height:1;letter-spacing:-1.2px;max-width:300px}
 .contact .button{padding:12px 40px;gap:12px}
 body>footer{min-height:0}
 .footergrid{padding:48px 16px 0;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;row-gap:40px}
 .footerbrand{grid-column:1/-1;margin-bottom:24px}
 .footerbrand .brand>img.logo-full{width:161px;height:auto}
 .footerbrand p{font-size:20px;line-height:1.5;max-width:358px;margin-top:24px}
 .footerbrand p+p{font-size:16px;font-weight:400;line-height:1.5;margin-top:20px}
 .footerbrand .socials{margin-top:20px}
 .footerbrand .socials a{background:#f5f2e5}
 .footergrid>.footercol:nth-child(2){grid-column:1;grid-row:2}
 .footergrid>.footercol:nth-child(4){grid-column:2;grid-row:2}
 .footergrid>.footercol:nth-child(3){grid-column:1/-1;grid-row:3}
 .footercol a{font-size:14px}
 .legal{margin:64px 16px 0;padding:16px 0 12px;align-items:center;gap:24px}
 .legal>div{width:100%;justify-content:space-between;font-size:14px}
}

/* Article recommendations and the contact form follow the mobile frames. */
.related-all-blog{display:none}
@media(max-width:600px){
 .articles-related{padding:48px 16px;background:#fff}
 .articles-related header{display:flex;flex-direction:column;align-items:flex-start;gap:24px;margin-bottom:38px}
 .articles-related header h2{font-size:32px;line-height:1.1;letter-spacing:-.96px}
 .articles-related .related-all-blog{display:inline-flex;align-items:center;gap:6px;padding:12px 16px;background:#f4f2eb;font-size:12px}
 .articles-related .blog-grid{row-gap:48px}
 .articles-related .blog-card:nth-child(n+4){display:none}
 .articles-related .blog-card figure{height:200px}
 .articles-related .blog-card:first-child figure{height:208px}
 .articles-related .blog-card-copy{min-height:0;padding-bottom:20px}
 .articles-related .blog-card h2{font-size:20px;line-height:1.2;margin-bottom:24px}
 .contact-form{padding:24px 16px;gap:32px}
 .contact-form h2{font-size:24px;line-height:1.1;letter-spacing:-1.2px}
 .contact-form hr{margin-top:-8px}
 .contact-fields{gap:16px}
 .contact-fields label{font-size:16px;font-weight:400;letter-spacing:-.32px}
 .contact-fields label:nth-child(4){margin-top:4px}
 .contact-fields input,.contact-fields textarea{padding-left:12px;padding-right:12px}
 .contact-fields input::placeholder,.contact-fields textarea::placeholder{font-size:14px;font-weight:400}
 .contact-fields textarea{height:120px;min-height:120px;padding-top:16px;padding-bottom:16px}
 .contact-submit{width:100%;align-items:center}
 .contact-submit .button{width:100%;justify-content:center}
 .contact-submit>p{text-align:center;font-weight:400}
}

@media(max-width:600px){
 .backbone-reel p{font-size:17px}
 .backbone-reel p:nth-child(1){top:23px}
 .backbone-reel p:nth-child(2){top:70px;font-size:24px}
 .backbone-reel p:nth-child(3){top:127px}
}

/* Prevent the browser tap flash on footer links; keyboard focus remains visible. */
@media(max-width:900px){body>footer a{-webkit-tap-highlight-color:transparent}}

/* Mobile homepage layout from the latest 390px design. */
@media(max-width:600px){
 .homepage .main-hero{height:800px;min-height:800px}
 .homepage .main-hero-copy{top:calc(50% - 36.5px);bottom:auto;transform:translateY(-50%);gap:64px}
 .homepage .main-hero-copy p{max-width:295px}
 .homepage .main-hero-copy>.button{padding:12px 16px;gap:6px;font-size:12px;line-height:1.4}
 .homepage .hero-short-rule{margin:32px 0}
 .homepage .main-hero:before{inset:203px -154px auto auto;width:720px;height:958px;aspect-ratio:auto;background:url('/assets/home-mobile-figma-2534.svg') center / 100% 100% no-repeat}
 .homepage .comparison-model{grid-template-rows:auto 527px auto}
 .homepage .comparison-switch{margin-bottom:0}
 .homepage .comparison-bar .judgment{height:150px}
 .homepage .comparison-bar .manipulation{height:450px}
 .homepage .comparison-model.fervent .judgment{height:450px}
 .homepage .comparison-model.fervent .manipulation{height:150px}
 .homepage .comparison-metrics>div:nth-child(1){margin-bottom:162px}
 .homepage .comparison-metrics>div:nth-child(2){margin-bottom:462px}
 .homepage .comparison-model.fervent .comparison-metrics>div:nth-child(1){margin-bottom:462px}
 .homepage .comparison-model.fervent .comparison-metrics>div:nth-child(2){margin-bottom:162px}
 .homepage .better-approach>h2{max-width:304px}
 .homepage .main-service-card{height:380px}
 .homepage .recent-work{min-height:0}
 .homepage .recent-work>.rail-window{width:calc(100% + 16px)}
 .homepage .work-card{width:min(326px,calc(100vw - 48px));max-width:none}
}

/* Remove the transient touch highlight on mobile navigation while retaining focus-visible outlines. */
@media (max-width:900px){
 nav a, nav button, nav summary{-webkit-tap-highlight-color:transparent}
}
